Skip to content

Commit f678d76

Browse files
committed
Reference parameter correctly in macro
1 parent db04ea0 commit f678d76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,13 +956,13 @@ function(add_swift_fuzzer_host_tool executable)
956956
target_link_libraries(${executable} PRIVATE "-fsanitize=fuzzer")
957957
endfunction()
958958

959-
macro(add_swift_tool_symlink name dest component destination)
959+
macro(add_swift_tool_symlink name dest component install_dir)
960960
# This is used by llvm_install_symlink to determine where
961961
# to put the target link
962962
# we decide to define this "locally" to the macro instead of the
963963
# main CMakeLists.txt so to align with how we configure installation
964964
# across our scripts (i.e. granular control for each program in a component)
965-
set(SWIFT_TOOLS_INSTALL_DIR destination)
965+
set(SWIFT_TOOLS_INSTALL_DIR ${install_dir})
966966
llvm_add_tool_symlink(SWIFT ${name} ${dest} ALWAYS_GENERATE)
967967
llvm_install_symlink(SWIFT ${name} ${dest} ALWAYS_GENERATE COMPONENT ${component})
968968
unset(SWIFT_TOOLS_INSTALL_DIR)

0 commit comments

Comments
 (0)