-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use array for rustflags to avoid conflicts with user flags
- Loading branch information
1 parent
6a4d1f8
commit 759785b
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
# to help locate python shared library in present working directory | ||
[target.x86_64-unknown-linux-musl] | ||
rustflags = "-C link-args=-Wl,-rpath,$ORIGIN" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,$ORIGIN"] | ||
# linker = "x86_64-linux-musl-gcc" | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = "-C link-args=-Wl,-rpath,$ORIGIN" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,$ORIGIN"] | ||
|
||
[target.i686-unknown-linux-gnu] | ||
rustflags = "-C link-args=-Wl,-rpath,$ORIGIN" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,$ORIGIN"] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
rustflags = "-C link-args=-Wl,-rpath,$ORIGIN" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,$ORIGIN"] | ||
|
||
[target.arm-unknown-linux-gnueabihf] | ||
rustflags = "-C link-args=-Wl,-rpath,$ORIGIN" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,$ORIGIN"] | ||
|
||
[target.arm-unknown-linux-musleabihf] | ||
rustflags = "-C link-args=-Wl,-rpath,$ORIGIN" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,$ORIGIN"] | ||
|
||
# to help locate python shared library in macOS in present working directory | ||
# for x86_64-apple-darwin,we also turn on CPU optimization by default | ||
# since there's only one kind of x86_64 CPU architecture for apple anyway | ||
[target.x86_64-apple-darwin] | ||
rustflags = "-C link-args=-Wl,-rpath,@loader_path -C target-cpu=native" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,@loader_path", "-C", "target-cpu=native"] | ||
|
||
# sadly, we can't do the same for Apple Silicon, since GitHub's macOS action runners | ||
# are still x86_64, and the Apple Silicon binary is cross-compiled using the | ||
# macOS Intel runner | ||
[target.aarch64-apple-darwin] | ||
rustflags = "-C link-args=-Wl,-rpath,@loader_path" | ||
rustflags = ["-C", "link-args=-Wl,-rpath,@loader_path"] |