Skip to content

Commit 5d27681

Browse files
committed
[build-script-helper] Prefer just-built plugins to SDK plugins
Add '-Xswiftc -plugin-path -Xswiftc ${toolchain}/lib/swift/host/plugins' to swiftpm invocations.
1 parent 2ed37d1 commit 5d27681

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def get_swiftpm_options(args):
8484
# Relative library rpath for swift; will only be used when /usr/lib/swift
8585
# is not available.
8686
'-Xlinker', '-rpath', '-Xlinker', '@executable_path/../lib/swift/macosx',
87+
# Prefer just-built plugins to SDK plugins.
88+
'-Xswiftc', '-plugin-path',
89+
'-Xswiftc', os.path.join(args.toolchain, 'lib', 'swift', 'host', 'plugins')
8790
]
8891
else:
8992
swiftpm_args += [

0 commit comments

Comments
 (0)