From d0c88731ee46ac3bded456684365546ac82a4ce6 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 13 Dec 2023 18:20:41 +0100 Subject: zig: fix native-search-paths --- zig.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/zig.scm b/zig.scm index 37e6154..a4570bf 100644 --- a/zig.scm +++ b/zig.scm @@ -75,6 +75,17 @@ ;; Zig compiles fine with GCC, but also needs native LLVM libraries. (native-inputs (list llvm-16)) + (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 "LIBRARY_PATH") + (files '("lib" "lib64"))))) (synopsis "General purpose programming language and toolchain") (description "Zig is a general-purpose programming language and toolchain. Among other features it provides @@ -154,6 +165,17 @@ toolchain. Among other features it provides ;; Zig compiles fine with GCC, but also needs native LLVM libraries. (native-inputs (list llvm-17)) + (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 "LIBRARY_PATH") + (files '("lib" "lib64"))))) (synopsis "General purpose programming language and toolchain") (description "Zig is a general-purpose programming language and toolchain. Among other features it provides -- cgit v1.2.3