-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to remove
.cargo/config.toml
to fix aarch64 nix builds
Using the flake on aarch4-linux in nix leads to an error `error: linker 'aarch64-linux-gnu-gcc' not found` which is apparently fixed by deleting the `.cargo/config.toml` according to this nixos issue / PR NixOS/nixpkgs#209697
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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
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,30 @@ | ||
:100644 000000 a55a502bb 000000000 D .cargo/config.toml | ||
|
||
diff --git a/.cargo/config.toml b/.cargo/config.toml | ||
deleted file mode 100644 | ||
index a55a502bb..000000000 | ||
--- a/.cargo/config.toml | ||
+++ /dev/null | ||
@@ -1,22 +0,0 @@ | ||
-[target.x86_64-unknown-linux-gnu] | ||
-rustflags = ["-C", "target-feature=+sse2,+ssse3,+sse4.1,+sse4.2"] | ||
- | ||
-[target.x86_64-unknown-linux-musl] | ||
-rustflags = ["-C", "target-feature=+sse2,+ssse3,+sse4.1,+sse4.2"] | ||
- | ||
-[target.aarch64-unknown-linux-gnu] | ||
-linker = "aarch64-linux-gnu-gcc" | ||
-rustflags = ["-C", "target-feature=+neon"] | ||
- | ||
-[target.aarch64-unknown-linux-musl] | ||
-linker = "aarch64-linux-gnu-gcc" | ||
-rustflags = ["-C", "target-feature=+neon"] | ||
- | ||
-[target.aarch64-apple-darwin] | ||
-rustflags = ["-C", "target-feature=+neon"] | ||
- | ||
-[target.x86_64-apple-darwin] | ||
-rustflags = ["-C", "target-feature=+sse2,+ssse3,+sse4.1,+sse4.2"] | ||
- | ||
-[target.x86_64-pc-windows-msvc] | ||
-rustflags = ["-C", "target-feature=+sse2,+ssse3,+sse4.1,+sse4.2"] |