From 6c6f4a97242017ada74071f947e6538d353d62b2 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 3 Sep 2022 15:44:53 +0200 Subject: llvm*: Fix core usage in tests lit (LLVM Integrated Tester) [0] by default uses as many threads as the build host has cores, ignoring the user's core settings for the build. This passes the configured core count on to lit, along with LLVM's default settings for it which we otherwise override in the process [1]. [0]: https://www.llvm.org/docs/CommandGuide/lit.html [1]: https://github.com/llvm/llvm-project/blob/329fda39c507e8740978d10458451dcdb21563be/llvm/CMakeLists.txt#L559-L565 --- pkgs/development/compilers/llvm/5/llvm/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/development/compilers/llvm/5') diff --git a/pkgs/development/compilers/llvm/5/llvm/default.nix b/pkgs/development/compilers/llvm/5/llvm/default.nix index cf668cd566a..720268e34af 100644 --- a/pkgs/development/compilers/llvm/5/llvm/default.nix +++ b/pkgs/development/compilers/llvm/5/llvm/default.nix @@ -154,6 +154,7 @@ stdenv.mkDerivation (rec { "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}" "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}" "-DTARGET_TRIPLE=${stdenv.hostPlatform.config}" + "-DLLVM_LIT_ARGS=-svj\${NIX_BUILD_CORES}" ] ++ lib.optionals enableManpages [ "-DLLVM_BUILD_DOCS=ON" -- cgit 1.4.1