File tree Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 27
27
- name : Install rust ${{ env.rust_release }}
28
28
run : rustup update ${{ env.rust_release }} && rustup default ${{ env.rust_release }}
29
29
30
+ - name : Disable rust-lld (to fix linkme)
31
+ run : echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
32
+ if : matrix.rust == 'nightly'
33
+
30
34
- uses : ./.github/actions/install-conjure
31
35
with :
32
36
os_arch : linux
Original file line number Diff line number Diff line change 40
40
41
41
- name : Install rust ${{ env.rust_release }}
42
42
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'
43
47
44
48
- uses : ./.github/actions/install-conjure
45
49
with :
Original file line number Diff line number Diff line change 24
24
env :
25
25
SCCACHE_GHA_ENABLED : " true"
26
26
RUSTC_WRAPPER : " sccache"
27
- SCCACHE_GHA_VERSION : 2
27
+ SCCACHE_GHA_VERSION : 3
28
28
29
29
jobs :
30
30
build-and-test :
54
54
- name : Run sccache-cache
55
55
uses : mozilla-actions/sccache-action@v0.0.3
56
56
57
+ - name : Disable rust-lld (to fix linkme)
58
+ run : echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
59
+ if : matrix.rust == 'nightly'
60
+
57
61
- run : rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }}
58
62
59
63
- 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:
13
13
This project is being produced by staff and students of University of St
14
14
Andrews, and is licenced under the [ MPL 2.0] ( ./LICENCE ) .
15
15
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
+
16
30
## Documentation
17
31
18
32
API 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