-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: use lld and mold linker * install mold * use sudo * use github actions * install mold by curl * remove sudo * mold for coverage * show error * hardcode * use env * export * put in a script * relative root * not array * move to script * pre-build to build * add linker * update cross * check * check * debian * library * only cargo * cargobin * build * only linux gnu
- Loading branch information
Showing
5 changed files
with
17 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#TODO: enable mold for other target | ||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-C", "link-arg=-fuse-ld=mold"] |
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
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
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,8 +1,5 @@ | ||
[build.env] | ||
passthrough = ["DATABASE_URL"] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
pre-build = [ | ||
"dpkg --add-architecture $CROSS_DEB_ARCH", | ||
"apt-get update && apt-get --assume-yes install libpq-dev:$CROSS_DEB_ARCH", | ||
] | ||
[build] | ||
pre-build = "ci/cross-pre-build.sh" |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
if [[ "$CROSS_TARGET" == "aarch64-unknown-linux-gnu" ]]; then | ||
dpkg --add-architecture $CROSS_DEB_ARCH | ||
apt-get update && apt-get --assume-yes install libpq-dev:$CROSS_DEB_ARCH | ||
fi |