[llvm] [cmake][Windows] Fix CMake variable (PR #226745)
Alan Zhao via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 19:43:17 PDT 2026
https://github.com/alanzhao1 created https://github.com/llvm/llvm-project/pull/226745
As a follow-up fix to #226635, the variable is `WIN32` not `Win32`.
>From e5607039361b0b8a2dc5cee7ae99bb99498af9f3 Mon Sep 17 00:00:00 2001
From: Alan Zhao <ayzhao at google.com>
Date: Sat, 26 Sep 2026 19:41:11 -0700
Subject: [PATCH] [cmake][Windows] Fix CMake variable
As a follow-up fix to #226635, the variable is `WIN32` not `Win32`.
---
llvm/cmake/modules/GetLibraryName.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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