llvm6: Build with support for the experimental WASM backend

This commit is contained in:
Will Dietz 2018-03-14 15:35:24 -05:00
parent c461c00201
commit f911edaf43
1 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@
, debugVersion ? false , debugVersion ? false
, enableManpages ? false , enableManpages ? false
, enableSharedLibraries ? true , enableSharedLibraries ? true
, enableWasm ? true
, darwin , darwin
}: }:
@ -115,7 +116,9 @@ in stdenv.mkDerivation (rec {
"-DCOMPILER_RT_BUILD_SANITIZERS=OFF" "-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
"-DCOMPILER_RT_BUILD_XRAY=OFF" "-DCOMPILER_RT_BUILD_XRAY=OFF"
]; ] ++ stdenv.lib.optional enableWasm
"-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly"
;
postBuild = '' postBuild = ''
rm -fR $out rm -fR $out