diff options
| author | Andreas Enge <andreas@enge.fr> | 2025-08-19 22:04:50 +0200 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-08-19 22:08:39 +0200 |
| commit | bee83cb2079af767c3ae3b76da346ed4b510574d (patch) | |
| tree | 71e9bb67c8530a32855461d0644e7fe6655892f4 | |
| parent | 99ebec55b1949a516a35ddc043f967baf48efdf0 (diff) | |
gnu: llvm-3.7: Inherit from llvm-6.
* gnu/packages/llvm.scm (llvm-3.7)[inherit]: Replace llvm-3.8 by llvm-6.
[outputs, arguments]: Copy from llvm-3.9.1.
Change-Id: Ia731ac5b4b0964277c5c0070783a951c26f28dfc
| -rw-r--r-- | gnu/packages/llvm.scm | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 2666d502f2..048933ebeb 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -1150,7 +1150,7 @@ Library.") #:patches '("clang-3.8-libc-search-path.patch"))) (define-public llvm-3.7 - (package (inherit llvm-3.8) + (package (inherit llvm-6) (version "3.7.1") (source (origin @@ -1159,7 +1159,21 @@ Library.") (sha256 (base32 "1masakdp9g2dan1yrazg7md5am2vacbkb3nahb3dchpc1knr8xxy")) - (patches (search-patches "llvm-3.x.1-fix-build-with-gcc.patch")))))) + (patches (search-patches "llvm-3.x.1-fix-build-with-gcc.patch")))) + (outputs '("out")) + (arguments + (substitute-keyword-arguments (package-arguments llvm-6) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'build 'shared-lib-workaround + ;; Even with CMAKE_SKIP_BUILD_RPATH=FALSE, llvm-tblgen + ;; doesn't seem to get the correct rpath to be able to run + ;; from the build directory. Set LD_LIBRARY_PATH as a + ;; workaround. + (lambda _ + (setenv "LD_LIBRARY_PATH" + (string-append (getcwd) "/lib")))) + (delete 'install-opt-viewer))))))) (define-public clang-runtime-3.7 (clang-runtime-from-llvm |
