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
This commit is contained in:
Efraim Flashner 2023-12-10 10:07:51 +02:00 committed by Ludovic Courtès
parent 0c9811497e
commit a9136076eb
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -50,6 +50,7 @@ (define-module (gnu packages llvm)
#: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 @@ (define* (clang-from-llvm llvm clang-runtime
#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")