summaryrefslogtreecommitdiff
path: root/libcxxabi/cmake
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-05-10 10:22:39 +0300
committerMartin Storsjö <martin@martin.st>2022-05-10 10:25:43 +0300
commitbf1b81d076f89bd56e86189b013f27dcf4d73ae8 (patch)
tree288ffe1a77799ee2e95fb3afa2e0b45d90f5c8a8 /libcxxabi/cmake
parentfb148057c5488f403b4706f8ea724134604a546c (diff)
downloadllvm-bf1b81d076f89bd56e86189b013f27dcf4d73ae8.tar.gz
[libcxxabi] [cmake] Fix a mismatched variable name
The variable name checked didn't match the one set on the line above. This error was introduced in b3df14b6c98702ce50401fd039852787373e4676.
Diffstat (limited to 'libcxxabi/cmake')
-rw-r--r--libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake b/libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake
index bf5c5fac8654..98b455c5cb30 100644
--- a/libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake
+++ b/libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake
@@ -192,7 +192,7 @@ macro(add_c_compile_flags_if_supported)
foreach(flag ${ARGN})
mangle_name("${flag}" flagname)
check_c_compiler_flag("${flag}" "C_SUPPORTS_${flagname}_FLAG")
- add_compile_flags_if(CXX_SUPPORTS_${flagname}_FLAG ${flag})
+ add_compile_flags_if(C_SUPPORTS_${flagname}_FLAG ${flag})
endforeach()
endmacro()