[llvm] [llvm][cmake] Quote CMAKE_CXX_COMPILER_ID in string comparison (PR #133332)

Michael Buch via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 27 16:07:19 PDT 2025


================
@@ -11,7 +11,7 @@ endmacro()
 
 # MSVC and /arch:AVX is untested and have created problems before. See:
 # https://github.com/llvm/llvm-project/issues/54645
-if(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL MSVC)
----------------
Michael137 wrote:

Sounds good! That seems to also be how we do it elsewhere in the codebase

https://github.com/llvm/llvm-project/pull/133332


More information about the llvm-commits mailing list