From 6eeb3544f3c1bd4b1d879630f134b77d1ed49cd7 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:14:45 +0200 Subject: [PATCH] Stop passing -fno-pic when building for wasm The latest cc version no longer passes -fpic on wasm, so -fno-pic is the default now. --- .github/workflows/checks.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index fe9c3d56..827cc0fc 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -327,7 +327,6 @@ jobs: export CMAKE_TOOLCHAIN_FILE="$(pwd)/wasi-sdk-24.0-x86_64-linux/share/cmake/wasi-sdk.cmake" cargo nextest run -p zlib-rs -p test-libz-rs-sys --target wasm32-wasip1 env: - CFLAGS: "-fno-pic" # workaround for linker bug (WebAssembly/wasi-sdk#492) RUST_BACKTRACE: 1 RUSTFLAGS: "" - name: cargo nextest (with SIMD) @@ -335,7 +334,6 @@ jobs: export CMAKE_TOOLCHAIN_FILE="$(pwd)/wasi-sdk-24.0-x86_64-linux/share/cmake/wasi-sdk.cmake" cargo nextest run -p zlib-rs -p test-libz-rs-sys --target wasm32-wasip1 env: - CFLAGS: "-fno-pic" # workaround for linker bug (WebAssembly/wasi-sdk#492) RUST_BACKTRACE: 1 RUSTFLAGS: "-Ctarget-feature=+simd128"