File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ else()
112
112
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-plugin-path ${BINARY_DIR} >" )
113
113
endif ()
114
114
115
- # TODO: @rpath-relative install name
116
- # This may or may not involve the `-(no-)toolchain-stdlib-rpath` Swift flag.
115
+ target_compile_options (Testing PRIVATE "-no-toolchain-stdlib-rpath" )
116
+ # TODO: Finalize
117
+ set_property (TARGET Testing PROPERTY INSTALL_RPATH "$ORIGIN" )
117
118
118
119
include (SwiftModuleInstallation)
119
120
# TODO: Finalize the install path
Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ if(SwiftTesting_BuildMacrosAsExecutables)
59
59
else ()
60
60
add_library (TestingMacros SHARED)
61
61
62
+ target_link_options (TestingMacros PRIVATE "-no-toolchain-stdlib-rpath" )
63
+ # Not setting RPATH requires all the dependencies are already loaded in the
64
+ # process, because 'plugin' directory wouldn't contain any dependencies.
65
+ set_property (TARGET TestingMacros PROPERTY INSTALL_RPATH )
66
+
62
67
# Install the macro plugin to the default location.
63
68
#
64
69
# This is not the plugin's actual, final install location -- it's only
You can’t perform that action at this time.
0 commit comments