[libcxx-commits] [libcxxabi] bf1b81d - [libcxxabi] [cmake] Fix a mismatched variable name

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 10 00:26:03 PDT 2022


Author: Martin Storsjö
Date: 2022-05-10T10:25:43+03:00
New Revision: bf1b81d076f89bd56e86189b013f27dcf4d73ae8

URL: https://github.com/llvm/llvm-project/commit/bf1b81d076f89bd56e86189b013f27dcf4d73ae8
DIFF: https://github.com/llvm/llvm-project/commit/bf1b81d076f89bd56e86189b013f27dcf4d73ae8.diff

LOG: [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.

Added: 
    

Modified: 
    libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake

Removed: 
    


################################################################################
diff  --git a/libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake b/libcxxabi/cmake/Modules/HandleLibcxxabiFlags.cmake
index bf5c5fac86546..98b455c5cb304 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()
 


        


More information about the libcxx-commits mailing list