File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1242,14 +1242,17 @@ def main():
12421242 build_flags .extend (["-Xswiftc" , "-F%s" % args .llbuild_build_dir ])
12431243
12441244 # Embed rpath to find llbuild library or framework at runtime.
1245+ llbuild_libs_rpaths = []
12451246 if args .llbuild_link_framework :
1246- llbuild_libs_rpath = "@executable_path/../../../../../SharedFrameworks"
1247+ llbuild_libs_rpaths .append ("@executable_path/../../../../../SharedFrameworks" )
1248+ llbuild_libs_rpaths .append ("@executable_path/../lib/swift/pm/llbuild" )
12471249 else :
12481250 if platform .system () == 'Darwin' :
1249- llbuild_libs_rpath = "@executable_path/../lib/swift/pm/llbuild"
1251+ llbuild_libs_rpaths . append ( "@executable_path/../lib/swift/pm/llbuild" )
12501252 else :
1251- llbuild_libs_rpath = "$ORIGIN/../lib/swift/pm/llbuild"
1252- build_flags .extend (["-Xlinker" , "-rpath" , "-Xlinker" , llbuild_libs_rpath ])
1253+ llbuild_libs_rpaths .append ("$ORIGIN/../lib/swift/pm/llbuild" )
1254+ for rpath in llbuild_libs_rpaths :
1255+ build_flags .extend (["-Xlinker" , "-rpath" , "-Xlinker" , rpath ])
12531256
12541257 # Add llbuild link flags.
12551258 build_flags .extend (llbuild_link_args (args ))
You can’t perform that action at this time.
0 commit comments