[libc++] Make the modules-related flags PUBLIC instead of PRIVATE

It appears that those need to be propagated to targets that use libc++
as well, otherwise they don't build properly.

llvm-svn: 373773
This commit is contained in:
Louis Dionne 2019-10-04 19:10:56 +00:00
parent cfe3bf89c2
commit 13c4254714
1 changed files with 2 additions and 2 deletions

View File

@ -679,8 +679,8 @@ endif()
function(cxx_add_module_flags target)
if (LLVM_ENABLE_MODULES)
# Ignore that the rest of the modules flags are now unused.
target_add_compile_flags_if_supported(${target} PRIVATE -Wno-unused-command-line-argument)
target_compile_options(${target} PRIVATE -fno-modules)
target_add_compile_flags_if_supported(${target} PUBLIC -Wno-unused-command-line-argument)
target_compile_options(${target} PUBLIC -fno-modules)
endif()
endfunction()