[llvm] e54a8d1 - [cmake][Windows] Fix CMake variable (#226745)

via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 26 20:46:37 PDT 2026


Author: Alan Zhao
Date: 2026-09-26T20:46:30-07:00
New Revision: e54a8d183eda0097771b422399ee929a334fb0af

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

LOG: [cmake][Windows] Fix CMake variable (#226745)

As a follow-up fix to #226635, the variable is `WIN32` not `Win32`.

Added: 
    

Modified: 
    llvm/cmake/modules/GetLibraryName.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/GetLibraryName.cmake b/llvm/cmake/modules/GetLibraryName.cmake
index 5aa42c343a3d3..06a4b8d49fe5e 100644
--- a/llvm/cmake/modules/GetLibraryName.cmake
+++ b/llvm/cmake/modules/GetLibraryName.cmake
@@ -7,7 +7,7 @@ function(get_library_name path name)
   list(FILTER suffixes EXCLUDE REGEX "^\\s*$")
   # Do not strip the "lib" prefix for Windows because MSVC-style linkers don't
   # implicitly add the "lib" prefix.
-  if(prefixes AND NOT Win32)
+  if(prefixes AND NOT WIN32)
     string(REPLACE ";" "|" prefixes "${prefixes}")
     string(REGEX REPLACE "^(${prefixes})" "" path ${path})
   endif()


        


More information about the llvm-commits mailing list