Skip to content

Commit 6c6b39d

Browse files
committed
Produce relocatable code for Rust libraries
Also update to Rust 1.75 toolchain
1 parent 5a9f0ad commit 6c6b39d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build-engine.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ ac_add_options --enable-portable-baseline-interp
2929
ac_add_options --prefix=${working_dir}/${objdir}/dist
3030
mk_add_options MOZ_OBJDIR=${working_dir}/${objdir}
3131
mk_add_options AUTOCLOBBER=1
32+
export RUSTFLAGS="-C relocation-model=pic"
33+
export RUSTC_BOOTSTRAP=1
34+
export CFLAGS="-fPIC"
35+
export CXXFLAGS="-fPIC"
36+
3237
EOF
3338

3439
target="$(uname)"

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "1.68.2"
2+
channel = "1.75"
33
targets = [ "wasm32-wasi" ]
44
profile = "minimal"

0 commit comments

Comments
 (0)