Skip to content

Commit

Permalink
Avoid nightly regression by using older nightly
Browse files Browse the repository at this point in the history
nightly-2023-12-15 breaks compilation of native applets by having symbols from
`compiler_builtins` conflict between the applet static library and the platform
during linking. This was not the case with nightly-2023-11-14.

This rollback is temporary until rust-lang/rust#118609
is fixed or provides guidance on how to address this issue. Currently the only
work-arounds are:

- Compile the applet to an object file (like `applet.o`) and let the platform
  link all the dependencies of the applet. This is not obvious to do
  generically at the moment.

- Require applets that need to compile natively to directly depend on
  `compiler_builtins` with the `weak-intrinsics` feature. If the dependency
  could been indirect, the prelude would have been the perfect place to
  introduce it. But given the dependency must be direct, this adds a small
  burden on applets.
  • Loading branch information
ia0 committed Dec 20, 2023
1 parent f6711f2 commit 12265cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2023-12-15"
channel = "nightly-2023-11-14"
components = ["clippy", "llvm-tools", "rust-src", "rustfmt"]
targets = [
"i686-unknown-linux-gnu",
Expand Down

0 comments on commit 12265cb

Please sign in to comment.