File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,6 @@ func platformArgs() -> [String] {
23
23
}
24
24
#endif
25
25
26
- // We support a custom override in conjunction with the
27
- // bootstrap script to allow embedding an appropriate RPATH for
28
- // the package manager tools themselves on Linux, so they can be
29
- // relocated with the Swift compiler.
30
-
31
- //TODO replace with -Xlinker forwarding since we have that now
32
-
33
- if let rpath = getenv ( " SWIFTPM_EMBED_RPATH " ) {
34
- args += [ " -Xlinker " , " -rpath " , " -Xlinker " , rpath]
35
- }
36
-
37
26
return args
38
27
}
39
28
Original file line number Diff line number Diff line change @@ -532,12 +532,14 @@ def main():
532
532
"SWIFT_BUILD_PATH=" + build_path ]
533
533
if args .sysroot :
534
534
env_cmd .append ("SYSROOT=" + args .sysroot )
535
- # On Linux, we need to embed an RPATH so swift-{build,get} can find the core
535
+
536
+ # We need to embed an RPATH so swift-{build,test} can find the core
536
537
# libraries.
537
538
if platform .system () == 'Linux' :
538
- env_cmd . append ( "SWIFTPM_EMBED_RPATH= $ORIGIN/../lib/swift/linux")
539
+ embed_rpath = " $ORIGIN/../lib/swift/linux"
539
540
else :
540
- env_cmd .append ("SWIFTPM_EMBED_RPATH=@executable_path/../lib/swift/macosx" )
541
+ embed_rpath = "@executable_path/../lib/swift/macosx"
542
+ cmd .extend (["-Xlinker" , "-rpath" , "-Xlinker" , embed_rpath ])
541
543
542
544
cmd = [os .path .join (sandbox_path , "bin" , "swift-build" )]
543
545
if args .xctest_path :
You can’t perform that action at this time.
0 commit comments