Skip to content

Commit 319a9e0

Browse files
committed
build: prune some unused options for _add_swift_host_executable_single
Remove some unused parameters for this function. This simplification will make it easier to merge `_add_swift_host_executable_single` into `add_swift_host_executable`.
1 parent b7654f1 commit 319a9e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,6 @@ function(_add_swift_host_executable_single name)
843843
ARCHITECTURE
844844
SDK)
845845
set(multiple_parameter_options
846-
COMPILE_FLAGS
847-
DEPENDS
848846
LLVM_LINK_COMPONENTS)
849847
cmake_parse_arguments(SWIFTEXE_SINGLE
850848
"${options}"
@@ -892,10 +890,8 @@ function(_add_swift_host_executable_single name)
892890
${SWIFTEXE_SINGLE_EXTERNAL_SOURCES})
893891

894892
add_dependencies_multiple_targets(
895-
TARGETS "${name}"
896-
DEPENDS
897-
${LLVM_COMMON_DEPENDS}
898-
${SWIFTEXE_SINGLE_DEPENDS})
893+
TARGETS ${name}
894+
DEPENDS ${LLVM_COMMON_DEPENDS})
899895
llvm_update_compile_flags("${name}")
900896

901897
if(SWIFTEXE_SINGLE_SDK STREQUAL WINDOWS)

0 commit comments

Comments
 (0)