Skip to content

Commit d325e19

Browse files
committed
More CMake
1 parent fcb1aa1 commit d325e19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/Modules/FindLibcCommonUtils.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88

99
if(NOT TARGET llvm-libc-common-utilities)
1010
set(libc_path ${CMAKE_CURRENT_LIST_DIR}/../../libc)
11+
list(APPEND CMAKE_MODULE_PATH "${libc_path}/cmake/modules")
1112
if (EXISTS ${libc_path} AND IS_DIRECTORY ${libc_path})
1213
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})
1318
# TODO: Reorganize the libc shared section so that it can be included without
1419
# adding the root "libc" directory to the include path.
1520
target_include_directories(llvm-libc-common-utilities INTERFACE ${libc_path})

0 commit comments

Comments
 (0)