File tree Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 2727 - name : Install rust ${{ env.rust_release }}
2828 run : rustup update ${{ env.rust_release }} && rustup default ${{ env.rust_release }}
2929
30+ - name : Disable rust-lld (to fix linkme)
31+ run : echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
32+ if : matrix.rust == 'nightly'
33+
3034 - uses : ./.github/actions/install-conjure
3135 with :
3236 os_arch : linux
Original file line number Diff line number Diff line change 4040
4141 - name : Install rust ${{ env.rust_release }}
4242 run : rustup update ${{ env.rust_release }} && rustup default ${{ env.rust_release }}
43+
44+ - name : Disable rust-lld (to fix linkme)
45+ run : echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
46+ if : matrix.rust == 'nightly'
4347
4448 - uses : ./.github/actions/install-conjure
4549 with :
Original file line number Diff line number Diff line change 5454 - name : Run sccache-cache
5555 uses :
mozilla-actions/[email protected] 5656
57+ - name : Disable rust-lld (to fix linkme)
58+ run : echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
59+ if : matrix.rust == 'nightly'
60+
5761 - run : rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }}
5862
5963 - run : cargo build -vv --workspace
Original file line number Diff line number Diff line change @@ -13,6 +13,20 @@ This repository hosts the following projects:
1313This project is being produced by staff and students of University of St
1414Andrews, and is licenced under the [ MPL 2.0] ( ./LICENCE ) .
1515
16+ ## Rust Nightly Support
17+
18+ The following compiler flags are required for Conjure-Oxide to work with
19+ Nightly Rust:
20+
21+ ``` sh
22+ export RUSTFLAGS=" -Zlinker-features=-lld"
23+ cargo build < ...>
24+ ```
25+
26+ This is because of current incompatibilities with linkme and the new default
27+ linker ([ link] ( https://github.com/dtolnay/linkme/issues/94 ) ).
28+
29+
1630## Documentation
1731
1832API documentation can be found [ here] ( https://conjure-cp.github.io/conjure-oxide/docs/ ) .
You can’t perform that action at this time.
0 commit comments