File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-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
+ run : echo RUSTDOCFLAGS=${RUSTDOCFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
33
+ if : matrix.rust_release == 'nightly'
34
+
30
35
- uses : ./.github/actions/install-conjure
31
36
with :
32
37
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
+ run : echo RUSTDOCFLAGS=${RUSTDOCFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
47
+ if : matrix.rust_release == 'nightly'
43
48
44
49
- uses : ./.github/actions/install-conjure
45
50
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 : 4
28
28
29
29
jobs :
30
30
build-and-test :
54
54
- name : Run sccache-cache
55
55
uses :
mozilla-actions/[email protected]
56
56
57
+ - name : Disable rust-lld (to fix linkme)
58
+ run : echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
59
+ run : echo RUSTDOCFLAGS=${RUSTDOCFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
60
+ if : matrix.rust_release == 'nightly'
61
+
57
62
- run : rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }}
58
63
59
64
- run : cargo build -vv --workspace
Original file line number Diff line number Diff line change @@ -13,6 +13,21 @@ 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
+ export RUSTDOCFLAGS=" -Zlinker-features=-lld"
24
+ cargo build < ...>
25
+ ```
26
+
27
+ This is because of current incompatibilities with linkme and the new default
28
+ linker ([ link] ( https://github.com/dtolnay/linkme/issues/94 ) ).
29
+
30
+
16
31
## Documentation
17
32
18
33
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