diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt index 22f50c9f4962..e02353169b7e 100644 --- a/lld/CMakeLists.txt +++ b/lld/CMakeLists.txt @@ -122,6 +122,7 @@ macro(add_lld_library name) set(libkind) endif() add_library(${name} ${libkind} ${srcs}) + llvm_update_compile_flags(${name} ${srcs}) if (LLVM_COMMON_DEPENDS) add_dependencies(${name} ${LLVM_COMMON_DEPENDS}) endif()