From 063f7d4a2664f704173d566315cb979f335aefac Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 20 May 2022 12:02:54 +0200 Subject: [PATCH] Don't ignore warnings, remove fuse-ld arg see https://github.com/rust-lang/cargo/issues/8010 on why I removed RUSTFLAGS="-Awarnings" --- www/build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/www/build.sh b/www/build.sh index cfc845f998..4ca72c5b26 100755 --- a/www/build.sh +++ b/www/build.sh @@ -21,10 +21,8 @@ echo 'Generating docs...' cargo --version rustc --version -# We set RUSTFLAGS to -Awarnings to ignore warnings during this build, -# because when building without "the" llvm feature (which is only ever done -# for this exact use case), the result is lots of "unused" warnings! -RUSTFLAGS=-Awarnings +# removing `-C link-arg=-fuse-ld=lld` from RUSTFLAGS because this causes an error when compiling `roc_repl_wasm` +RUSTFLAGS="-C target-cpu=native" # We set ROC_DOCS_ROOT_DIR=builtins so that links will be generated relative to # "/builtins/" rather than "/" - which is what we want based on how the server