File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed
docker/wasm32-unknown-unknown Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 90
90
- run : rustup component add llvm-tools-preview
91
91
- name : Download compiler-rt reference sources
92
92
run : |
93
- curl -L -o code.tar.gz https://github.com/rust-lang/llvm-project/archive/rustc/12 .0-2021-04-15 .tar.gz
94
- tar xzf code.tar.gz --strip-components 1 llvm-project-rustc-12 .0-2021-04-15 /compiler-rt
93
+ curl -L -o code.tar.gz https://github.com/rust-lang/llvm-project/archive/rustc/13 .0-2021-08-08 .tar.gz
94
+ tar xzf code.tar.gz --strip-components 1 llvm-project-rustc-13 .0-2021-08-08 /compiler-rt
95
95
echo RUST_COMPILER_RT_ROOT=./compiler-rt >> $GITHUB_ENV
96
96
shell : bash
97
97
Original file line number Diff line number Diff line change @@ -56,15 +56,10 @@ fn main() {
56
56
if !cfg ! ( feature = "mangled-names" ) && cfg ! ( feature = "c" ) {
57
57
// Don't use a C compiler for these targets:
58
58
//
59
- // * wasm - clang for wasm is somewhat hard to come by and it's
60
- // unlikely that the C is really that much better than our own Rust.
61
59
// * nvptx - everything is bitcode, not compatible with mixed C/Rust
62
60
// * riscv - the rust-lang/rust distribution container doesn't have a C
63
61
// compiler.
64
- if !target. contains ( "wasm" )
65
- && !target. contains ( "nvptx" )
66
- && ( !target. starts_with ( "riscv" ) || target. contains ( "xous" ) )
67
- {
62
+ if !target. contains ( "nvptx" ) && ( !target. starts_with ( "riscv" ) || target. contains ( "xous" ) ) {
68
63
#[ cfg( feature = "c" ) ]
69
64
c:: compile ( & llvm_target, & target) ;
70
65
}
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:20.04
2
2
RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
- gcc libc6-dev ca-certificates
4
+ gcc clang libc6-dev ca-certificates
5
5
6
6
ENV CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER=true
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ for rlib in $(echo $path); do
66
66
grep -v __x86.get_pc_thunk | \
67
67
grep -v __builtin_cl | \
68
68
grep -v __builtin_ctz | \
69
+ grep -v __builtin_sadd_overflow | \
69
70
grep ' T __'
70
71
71
72
if test $? = 0; then
You can’t perform that action at this time.
0 commit comments