Skip to content

Commit

Permalink
Solve more issues from macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jul 19, 2023
1 parent 491461b commit b11db44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions cmake/FindLibClang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ include(FindPackageHandleStandardArgs)
# Find Clang C API Library
_libclang_generate_search_paths("/usr/lib/llvm-VERSION/lib/" LibClang_LIBRARY_PATHS)

find_library(LibClang_LIBRARY
NAMES clang
PATHS ${LibClang_LIBRARY_PATHS} /usr/lib # Use this path as a fallback
)
if(NOT LibClang_LIBRARY)
find_library(LibClang_LIBRARY
NAMES clang
PATHS ${LibClang_LIBRARY_PATHS} /usr/lib # Use this path as a fallback
)
endif()

# Find Clang C API Headers
_libclang_generate_search_paths("/usr/lib/llvm-VERSION/include/clang-c" LibClang_INCLUDE_PATHS)
Expand All @@ -68,10 +70,12 @@ set(LibClang_INCLUDE_HEADERS
Platform.h
)

find_path(LibClang_INCLUDE_DIR
NAMES ${LibClang_INCLUDE_HEADERS}
PATHS ${LibClang_INCLUDE_PATHS} /usr/include/clang-c # Use this path as a fallback
)
if(NOT LibClang_INCLUDE_DIR)
find_path(LibClang_INCLUDE_DIR
NAMES ${LibClang_INCLUDE_HEADERS}
PATHS ${LibClang_INCLUDE_PATHS} /usr/include/clang-c # Use this path as a fallback
)
endif()

get_filename_component(LibClang_INCLUDE_DIR ${LibClang_INCLUDE_DIR} DIRECTORY)

Expand Down
2 changes: 1 addition & 1 deletion source/format/include/format/format_specifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ extern "C" {
#define FORMAT_PREFIX "z"
#elif defined(FORMAT_64BIT)
#if (defined(__APPLE__) && defined(__MACH__)) || defined(__MACOSX__)
#define FORMAT_PREFIX "ll"
#define FORMAT_PREFIX "l"
#else
#define FORMAT_PREFIX
#endif
Expand Down

0 comments on commit b11db44

Please sign in to comment.