Unverified Commit 8a8acb89 authored by Gabriel Ebner's avatar Gabriel Ebner Committed by GitHub
Browse files

Merge pull request #132561 from yu-re-ka/feature/emscripten-libc-mt

emscripten: build multi-threaded libc
parents f4799162 7e2a1bb7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -92,8 +92,10 @@ stdenv.mkDerivation rec {
      # wasm2c doesn't work with PIC
      $out/bin/emcc -s WASM2C -s STANDALONE_WASM $LTO test.c

      for MT in "" "-s USE_PTHREADS"; do
        for RELOCATABLE in "" "-s RELOCATABLE"; do
        $out/bin/emcc $RELOCATABLE $LTO test.c
          $out/bin/emcc $RELOCATABLE $MT $LTO test.c
        done
      done
    done
    popd