summaryrefslogtreecommitdiffstats
path: root/libcxx/cmake/Modules/HandleLibcxxFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/cmake/Modules/HandleLibcxxFlags.cmake')
-rw-r--r--libcxx/cmake/Modules/HandleLibcxxFlags.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake
index bb886fa8a01..b8ea1344644 100644
--- a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake
+++ b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake
@@ -35,6 +35,11 @@ macro(remove_flags)
endforeach()
endmacro(remove_flags)
+macro(check_flag_supported flag)
+ mangle_name("${flag}" flagname)
+ check_cxx_compiler_flag("${flag}" "LIBCXX_SUPPORTS_${flagname}_FLAG")
+endmacro()
+
# Add a macro definition if condition is true.
macro(define_if condition def)
if (${condition})
OpenPOWER on IntegriCloud