emscriptenfastcomp-wrapped: disable hardening

The hardening flags break webassembly generation, at least in some
cases.
This commit is contained in:
Gabriel Ebner 2017-01-06 09:43:52 +01:00
parent d30a17bc2c
commit ad507954fa

View file

@ -1546,7 +1546,10 @@ in
emscripten = callPackage ../development/compilers/emscripten { };
emscriptenfastcomp-unwrapped = callPackage ../development/compilers/emscripten-fastcomp { };
emscriptenfastcomp-wrapped = wrapCC emscriptenfastcomp-unwrapped;
emscriptenfastcomp-wrapped = wrapCCWith ccWrapperFun stdenv.cc.libc ''
# hardening flags break WASM support
cat > $out/nix-support/add-hardening.sh
'' emscriptenfastcomp-unwrapped;
emscriptenfastcomp = symlinkJoin {
name = "emscriptenfastcomp";
paths = [ emscriptenfastcomp-wrapped emscriptenfastcomp-unwrapped ];