Skip to content

Commit fe56065

Browse files
committed
Set -Crelocation-model=static in RUSTFLAGS
In d3b9c05, we switched our test framework to the built-in x86_64-unknown-none target. This required a `-Crelocation-model=static` flag to work with bootloader v0.9, which we set using a `build.rustflags` config key. In 2eb838d, we set a `RUSTFLAGS` env variable on CI to deny warnings. Unfortunately, the above two commits conflict because the `RUSTFLAGS` env variable takes precedence over the `build.rustflags` key. This commit fixes this by setting an explicit `RUSTFLAGS` value for the bootloader test job that contains both flags.
1 parent 2b813b2 commit fe56065

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ jobs:
8383
runs-on: ${{ matrix.platform }}
8484
timeout-minutes: 15
8585

86+
env:
87+
RUSTFLAGS: -Crelocation-model=static -Dwarnings
88+
8689
steps:
8790
- name: "Checkout Repository"
8891
uses: actions/checkout@v4

0 commit comments

Comments
 (0)