From 46a3465e783a59c578bc75a898337dbe1a13c248 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 19 May 2023 18:34:11 +0200 Subject: [PATCH] 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 --- overlay.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/overlay.nix b/overlay.nix index d6f07fa..e10f007 100644 --- a/overlay.nix +++ b/overlay.nix @@ -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++"; };