diff options
author | Will Dietz <w@wdtz.org> | 2018-03-14 15:35:24 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-03-14 15:35:24 -0500 |
commit | f911edaf43e08495ef983b4a4eea57a28774fc7e (patch) | |
tree | b8be6c826e958481e6ef904c79e1031a28a1b3b4 /pkgs | |
parent | c461c00201e9727ad0ce403bdf6245a9f94b6236 (diff) | |
download | nixpkgs-f911edaf43e08495ef983b4a4eea57a28774fc7e.tar nixpkgs-f911edaf43e08495ef983b4a4eea57a28774fc7e.tar.gz nixpkgs-f911edaf43e08495ef983b4a4eea57a28774fc7e.tar.bz2 nixpkgs-f911edaf43e08495ef983b4a4eea57a28774fc7e.tar.lz nixpkgs-f911edaf43e08495ef983b4a4eea57a28774fc7e.tar.xz nixpkgs-f911edaf43e08495ef983b4a4eea57a28774fc7e.tar.zst nixpkgs-f911edaf43e08495ef983b4a4eea57a28774fc7e.zip |
llvm6: Build with support for the experimental WASM backend
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/llvm/6/llvm.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/6/llvm.nix b/pkgs/development/compilers/llvm/6/llvm.nix index 4f7a2835cc9..256b9120c82 100644 --- a/pkgs/development/compilers/llvm/6/llvm.nix +++ b/pkgs/development/compilers/llvm/6/llvm.nix @@ -16,6 +16,7 @@ , debugVersion ? false , enableManpages ? false , enableSharedLibraries ? true +, enableWasm ? true , darwin }: @@ -115,7 +116,9 @@ in stdenv.mkDerivation (rec { "-DCOMPILER_RT_BUILD_SANITIZERS=OFF" "-DCOMPILER_RT_BUILD_XRAY=OFF" - ]; + ] ++ stdenv.lib.optional enableWasm + "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly" + ; postBuild = '' rm -fR $out |