guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: clang-from-llvm: Use gcc's search paths.


From: guix-commits
Subject: 02/02: gnu: clang-from-llvm: Use gcc's search paths.
Date: Sun, 10 Dec 2023 04:10:51 -0500 (EST)

efraim pushed a commit to branch core-updates
in repository guix.

commit 243ffb8237ea239801129c96020ec071665180f7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Dec 10 10:07:51 2023 +0200

    gnu: clang-from-llvm: Use gcc's search paths.
    
    * gnu/packages/llvm.scm (clang-from-llvm)[native-search-paths]: Use
    %gcc-search-paths.
    
    Change-Id: I777cab55e8a1931502a537c0680608d7d6b5b715
---
 gnu/packages/llvm.scm | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 56e2279f69..6fbe7b3cf9 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -50,6 +50,7 @@
   #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix memoization)
+  #:use-module (guix search-paths)
   #:use-module (guix utils)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system emacs)
@@ -451,19 +452,7 @@ ttest third-party/unittest)\n" line))))))
                       #t)))))
 
     ;; Clang supports the same environment variables as GCC.
-    (native-search-paths
-     (list (search-path-specification
-            (variable "C_INCLUDE_PATH")
-            (files '("include")))
-           (search-path-specification
-            (variable "CPLUS_INCLUDE_PATH")
-            (files '("include/c++" "include")))
-           (search-path-specification
-            (variable "OBJC_INCLUDE_PATH")
-            (files '("include")))
-           (search-path-specification
-            (variable "LIBRARY_PATH")
-            (files '("lib" "lib64")))))
+    (native-search-paths %gcc-search-paths)
 
     (home-page "https://clang.llvm.org";)
     (synopsis "C language family frontend for LLVM")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]