[llvm] fb619b3 - [CMake] Address the issue introduced in #69869
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 27 00:31:28 PDT 2023
Author: Petr Hosek
Date: 2023-10-27T07:31:19Z
New Revision: fb619b3c78b1b6a026b0fec9fccff4c515465803
URL: https://github.com/llvm/llvm-project/commit/fb619b3c78b1b6a026b0fec9fccff4c515465803
DIFF: https://github.com/llvm/llvm-project/commit/fb619b3c78b1b6a026b0fec9fccff4c515465803.diff
LOG: [CMake] Address the issue introduced in #69869
While extracting the existing functionality into a function, one of the
variable usages wasn't correctly updated.
Added:
Modified:
llvm/runtimes/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 4ae2bf2ef20e92d..a464c6c43af7b9c 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -174,7 +174,7 @@ endif()
function(_get_runtime_name name out_var)
string(FIND ${name} "lib" idx)
if(idx EQUAL 0 AND NOT ${name} STREQUAL "libc")
- string(SUBSTRING ${name} 3 -1 entry)
+ string(SUBSTRING ${name} 3 -1 name)
endif()
set(${out_var} ${name} PARENT_SCOPE)
endfunction()
More information about the llvm-commits
mailing list