We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fe9ac3 commit 08ec7deCopy full SHA for 08ec7de
2 files changed
.cargo/config.toml
@@ -1,2 +1,9 @@
1
+[target.'cfg(target_arch="x86_64")']
2
+rustflags = ["-C", "target-cpu=x86-64-v3"]
3
+
4
+[target.'cfg(target_arch="aarch64")']
5
+rustflags = ["-C", "target-cpu=generic"]
6
7
[build]
8
+# Fallback
9
rustflags = ["-C", "target-cpu=native"]
.github/workflows/test.yml
@@ -26,13 +26,5 @@ jobs:
26
~/.cargo/git
27
target
28
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
29
- - name: Override target-cpu on macOS
30
- if: runner.os == 'macOS'
31
- run: |
32
- mkdir -p .cargo
33
- cat > .cargo/config.toml << 'EOF'
34
- [build]
35
- rustflags = ["-C", "target-cpu=apple-m1"]
36
- EOF
37
- name: Run tests
38
run: cargo test --verbose
0 commit comments