diff options
| author | Raito Bezarius <masterancpp@gmail.com> | 2023-03-12 14:47:46 +0100 |
|---|---|---|
| committer | Raito Bezarius <masterancpp@gmail.com> | 2023-03-12 14:48:44 +0100 |
| commit | 0f1dbcbaa7d3031f6b6ad555a1464d5144308738 (patch) | |
| tree | 1ec45e62326ec50ca13222726f25394ff7d969eb | |
| parent | llvmPackages_16: init (diff) | |
| download | nixpkgs-origin/llvm16.tar.gz | |
wip! enable ASAN on LLVM buildorigin/llvm16
| -rw-r--r-- | pkgs/development/compilers/llvm/16/llvm/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/compilers/llvm/16/llvm/default.nix b/pkgs/development/compilers/llvm/16/llvm/default.nix index 23d8e9fec518..f34d39c37a5c 100644 --- a/pkgs/development/compilers/llvm/16/llvm/default.nix +++ b/pkgs/development/compilers/llvm/16/llvm/default.nix @@ -21,6 +21,7 @@ , sysctl , buildLlvmTools , debugVersion ? false +, sanitizer ? "Address" , doCheck ? (!stdenv.isx86_32 /* TODO: why */) && (!stdenv.hostPlatform.isMusl) && (stdenv.hostPlatform == stdenv.buildPlatform) , enableManpages ? false @@ -236,12 +237,6 @@ in stdenv.mkDerivation (rec { rm test/tools/gold/X86/split-dwarf.ll rm test/tools/llvm-dwarfdump/X86/prettyprint_types.s rm test/tools/llvm-dwarfdump/X86/simplified-template-names.s - - # !!! Note: these tests are removed in LLVM 16. - # - # See here for context: https://github.com/NixOS/nixpkgs/pull/194634#discussion_r999790443 - rm test/CodeGen/RISCV/rv32zbp.ll - rm test/CodeGen/RISCV/rv64zbp.ll '' + optionalString (stdenv.hostPlatform.system == "armv6l-linux") '' # Seems to require certain floating point hardware (NEON?) rm test/ExecutionEngine/frem.ll @@ -330,6 +325,8 @@ in stdenv.mkDerivation (rec { "-DSPHINX_WARNINGS_AS_ERRORS=OFF" ] ++ optionals (enableGoldPlugin) [ "-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include" + ] ++ optionals (sanitizer != null) [ + "-DLLVM_USE_SANITIZER=${sanitizer}" # Possible values: Address, Memory, MemoryWithOrigins, Undefined, Thread, DataFlow, and Address;Undefined ] ++ optionals isDarwin [ "-DLLVM_ENABLE_LIBCXX=ON" "-DCAN_TARGET_i386=false" |
