wasm: set -fno-exceptions

We need this to support C++ code.
This commit is contained in:
Matthew Bauer 2019-04-15 22:23:01 -04:00
parent dbb94b984f
commit 556466d52f

View File

@ -106,6 +106,8 @@ let
echo "-B${targetLlvmLibraries.compiler-rt}/lib" >> $out/nix-support/cc-cflags
'' + stdenv.lib.optionalString (!stdenv.targetPlatform.isWasm) ''
echo "--unwindlib=libunwind" >> $out/nix-support/cc-cflags
'' + stdenv.lib.optionalString stdenv.targetPlatform.isWasm ''
echo "-fno-exceptions" >> $out/nix-support/cc-cflags
'' + mkExtraBuildCommands cc;
};