mirror of
https://github.com/intel/llvm.git
synced 2026-01-12 18:27:07 +08:00
[libc++] Use private CMake flags to enable the pragma system_header macro when building (#138826)
That property doesn't need to be propagated beyond the translation units of the libc++ built library itself.
This commit is contained in:
@@ -2,7 +2,7 @@ include(HandleFlags)
|
||||
|
||||
# Warning flags ===============================================================
|
||||
function(cxx_add_warning_flags target enable_werror enable_pedantic)
|
||||
target_compile_definitions(${target} PUBLIC -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
target_compile_definitions(${target} PRIVATE -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
if (MSVC)
|
||||
# -W4 is the cl.exe/clang-cl equivalent of -Wall. (In cl.exe and clang-cl,
|
||||
# -Wall is equivalent to -Weverything in GCC style compiler drivers.)
|
||||
|
||||
Reference in New Issue
Block a user