File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
lib/Macros/Sources/ObservationMacros Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ add_custom_command_target(
51
51
COMMAND "${CMAKE_COMMAND} " -E rm -f "${module_file} "
52
52
OUTPUT ${module_base}
53
53
COMMENT "Generating module directory for ${module_name} " )
54
- add_dependencies (${library_name} ${create_module_dirs_dependency_target} )
54
+ add_dependencies (${library_name}
55
+ ${create_module_dirs_dependency_target}
56
+ libSwiftScan # Placeholder that gets SwiftSyntax et-al built
57
+ )
55
58
56
59
# Build the module with library evolution enabled and install into the
57
60
# appropriate locations.
@@ -62,12 +65,13 @@ target_compile_options("${library_name}" PRIVATE
62
65
-emit-module-interface-path;
63
66
"${module_interface_file} " ;
64
67
-I ${CMAKE_BINARY_DIR} /lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY};
68
+ -Xlinker -L${CMAKE_BINARY_DIR}/lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY};
65
69
-target;${target}> )
66
70
67
71
target_link_libraries (${library_name}
68
72
PRIVATE
69
- SwiftSyntax::SwiftSyntax
70
- SwiftSyntax:: SwiftSyntaxMacros
73
+ SwiftSyntax
74
+ SwiftSyntaxMacros
71
75
)
72
76
73
77
swift_install_in_component (TARGETS "${library_name} "
You can’t perform that action at this time.
0 commit comments