Skip to content

Commit c47d970

Browse files
committed
don't pass -Crelocation-model=static to host targets
If --target is set any flags from RUSTFLAGS only affect that target.
1 parent be15a1e commit c47d970

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ jobs:
8989
runs-on: ${{ matrix.platform }}
9090
timeout-minutes: 15
9191

92-
env:
93-
RUSTFLAGS: -Crelocation-model=static -Dwarnings
94-
9592
steps:
9693
- name: "Checkout Repository"
9794
uses: actions/checkout@v4
@@ -137,9 +134,11 @@ jobs:
137134
run: qemu-system-x86_64 --version
138135

139136
- name: "Run Test Framework"
140-
run: cargo test
137+
run: cargo test --target x86_64-unknown-none
141138
shell: bash
142139
working-directory: "testing"
140+
env:
141+
RUSTFLAGS: -Crelocation-model=static -Dwarnings
143142

144143
check_formatting:
145144
name: "Check Formatting"

0 commit comments

Comments
 (0)