Lines 503-509
Link Here
|
503 |
done |
503 |
done |
504 |
if use wasm; then |
504 |
if use wasm; then |
505 |
wasm_target="wasm32-unknown-unknown" |
505 |
wasm_target="wasm32-unknown-unknown" |
506 |
export CFLAGS_${wasm_target//-/_}="$(filter-flags '-mcpu*' '-march*' '-mtune*'; echo "$CFLAGS")" |
506 |
export CFLAGS_${wasm_target//-/_}="$(filter-flags '-mcpu*' '-march*' '-mtune*' '-maes*'; echo "$CFLAGS")" |
507 |
cat <<- _EOF_ >> "${S}"/config.toml |
507 |
cat <<- _EOF_ >> "${S}"/config.toml |
508 |
[target.wasm32-unknown-unknown] |
508 |
[target.wasm32-unknown-unknown] |
509 |
linker = "$(usex system-llvm lld rust-lld)" |
509 |
linker = "$(usex system-llvm lld rust-lld)" |