From fce556cb285071e4cb042ad135dcaaaae303c9a7 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 14 Mar 2024 12:42:26 +0100 Subject: [PATCH] Build OmpSs-2 LLVM with commit version information Allows users to see which commit (or git tag) was used in clang. Examples for the release and git versions: % clang --version clang version 18.0.0 (18.0.0-ompss-2) % clang --version clang version 18.0.0 (0a6d6c6) Reviewed-by: Aleix Roca Nonell Tested-by: Rodrigo Arias Mallo --- pkgs/llvm-ompss2/clang.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/llvm-ompss2/clang.nix b/pkgs/llvm-ompss2/clang.nix index c60eb7e..0fef76e 100644 --- a/pkgs/llvm-ompss2/clang.nix +++ b/pkgs/llvm-ompss2/clang.nix @@ -113,6 +113,8 @@ in stdenv.mkDerivation rec { # install "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON" "-DCMAKE_INSTALL_RPATH=${zlib}/lib:${gcc.cc.lib}/lib" + "-DLLVM_APPEND_VC_REV=ON" + "-DLLVM_FORCE_VC_REVISION=${source.version}" ) '';