Build clang with a new LLVM

Older LLVM 11 version produces a broken compiler, see:
https://pm.bsc.es/gitlab/llvm-ompss/llvm-mono/-/issues/183
This commit is contained in:
Rodrigo Arias 2023-05-19 18:34:11 +02:00
parent 1d788aeff2
commit 46a3465e78

View File

@ -83,8 +83,8 @@ let
gcc = appendPasstru self.gcc { CC = "gcc"; CXX = "g++"; };
# Last llvm release by default
llvmPackages = self.llvmPackages_11 // {
clang = appendPasstru self.llvmPackages_11.clang {
llvmPackages = self.llvmPackages_latest // {
clang = appendPasstru self.llvmPackages_latest.clang {
CC = "clang"; CXX = "clang++";
};
};
@ -105,12 +105,13 @@ let
clangOmpss2 = appendPasstru (
callPackage ./bsc/llvm-ompss2/default.nix {
llvmPackages = self.llvmPackages_latest;
llvmPackages = bsc.llvmPackages;
clangOmpss2Unwrapped = bsc.clangOmpss2Unwrapped;
}) { CC = "clang"; CXX = "clang++"; };
clangOmpss2Git = appendPasstru (
callPackage ./bsc/llvm-ompss2/default.nix {
llvmPackages = bsc.llvmPackages;
clangOmpss2Unwrapped = bsc.clangOmpss2UnwrappedGit;
}) { CC = "clang"; CXX = "clang++"; };