summary refs log tree commit diff
path: root/gnu/packages/llvm.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-06-19 11:34:53 +0200
committerLudovic Courtès <ludo@gnu.org>2015-06-19 17:23:48 +0200
commitef11ac87013a67f2c4454adf7d477a5c602a14b3 (patch)
tree41e9e817dfcecc69639918807cf22a526917a9de /gnu/packages/llvm.scm
parentd0abf829a95b5a4501eae452e03ca8b1d47b0b16 (diff)
downloadguix-ef11ac87013a67f2c4454adf7d477a5c602a14b3.tar.gz
gnu: clang: Add search path specifications.
* gnu/packages/llvm.scm (clang-from-llvm)[native-search-paths]: New field.
Diffstat (limited to 'gnu/packages/llvm.scm')
-rw-r--r--gnu/packages/llvm.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 6cf1fdab0a..946773c91e 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -96,6 +97,16 @@ tools as well as libraries with equivalent functionality.")
     (propagated-inputs
      `(("llvm" ,llvm)))
     (arguments `(#:configure-flags '("-DCLANG_INCLUDE_TESTS=True")))
+
+    ;; Clang supports the same environment variables as GCC.
+    (native-search-paths
+     (list (search-path-specification
+            (variable "CPATH")
+            (files '("include")))
+           (search-path-specification
+            (variable "LIBRARY_PATH")
+            (files '("lib" "lib64")))))
+
     (home-page "http://clang.llvm.org")
     (synopsis "C language family frontend for LLVM")
     (description