We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcb1aa1 commit d325e19Copy full SHA for d325e19
cmake/Modules/FindLibcCommonUtils.cmake
@@ -8,8 +8,13 @@
8
9
if(NOT TARGET llvm-libc-common-utilities)
10
set(libc_path ${CMAKE_CURRENT_LIST_DIR}/../../libc)
11
+ list(APPEND CMAKE_MODULE_PATH "${libc_path}/cmake/modules")
12
if (EXISTS ${libc_path} AND IS_DIRECTORY ${libc_path})
13
add_library(llvm-libc-common-utilities INTERFACE)
14
+ include(LibcConfig)
15
+ include(LLVMLibCCompileOptionRules)
16
+ _get_compile_options_from_config(compile_options)
17
+ target_compile_options(llvm-libc-common-utilities INTERFACE ${compile_options})
18
# TODO: Reorganize the libc shared section so that it can be included without
19
# adding the root "libc" directory to the include path.
20
target_include_directories(llvm-libc-common-utilities INTERFACE ${libc_path})
0 commit comments