From a9136076eb639731581cb50e996f63e431eaff72 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 10 Dec 2023 10:07:51 +0200 Subject: 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(-) (limited to 'gnu') diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 0c0ec1bca1..f27ab5e3b4 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) @@ -464,19 +465,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") -- cgit v1.2.3