Skip to content

Commit

Permalink
[CMake] Address the issue introduced in #69869
Browse files Browse the repository at this point in the history
While extracting the existing functionality into a function, one of the
variable usages wasn't correctly updated.
  • Loading branch information
petrhosek committed Oct 27, 2023
1 parent 8e247b8 commit fb619b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/runtimes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fb619b3

Please sign in to comment.