File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -255,11 +255,11 @@ if (UNIX AND CMAKE_SYSTEM_NAME MATCHES "AIX")
255255 add_compile_definitions (_LARGE_FILE_API)
256256endif ()
257257
258- # Check whether the compiler can undefine a macro using the "-U" flag.
258+ # Check whether the compiler can undefine a macro using the "-Wp,- U" flag.
259259# Aternatively, we could use
260260# CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "GNU"
261261# but some older versions of CMake don't define it for GCC itself.
262- check_cxx_compiler_flag("-UTESTFLAG" FLANG_RT_SUPPORTS_UNDEFINE_FLAG)
262+ check_cxx_compiler_flag("-Wp,- UTESTFLAG" FLANG_RT_SUPPORTS_UNDEFINE_FLAG)
263263
264264# Check whether -fno-lto is supported.
265265check_cxx_compiler_flag(-fno-lto FLANG_RT_HAS_FNO_LTO_FLAG)
You can’t perform that action at this time.
0 commit comments