Skip to content

Commit cd21684

Browse files
committed
macros: install the runtime component for Windows
Windows uses the runtime component for the DLL, the library component for the import library, and archive component for static archives. This is in contrast to Darwin that uses library for the DLL and archive for static archives. This is required to enable packaging the ObservableMacros.
1 parent 4557ed6 commit cd21684

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Macros/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ function(add_swift_macro_library name)
6060
set(destination_dir "lib${LLVM_LIBDIR_SUFFIX}/swift/host/plugins")
6161

6262
swift_install_in_component(TARGETS ${name}
63+
RUNTIME
64+
DESTINATION bin
65+
COMPONENT compiler
6366
LIBRARY
6467
DESTINATION "${destination_dir}"
6568
COMPONENT compiler

0 commit comments

Comments
 (0)