From 9143b335c3626806af413f036e90ad2d0b9f8829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Mon, 19 May 2025 19:38:48 +0200 Subject: [PATCH] llvm: add include cc --- pkgs/llvm-ompss2/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/llvm-ompss2/default.nix b/pkgs/llvm-ompss2/default.nix index 1b53de3..43f7c13 100644 --- a/pkgs/llvm-ompss2/default.nix +++ b/pkgs/llvm-ompss2/default.nix @@ -47,6 +47,9 @@ in wrapCCWith { echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gccVersion}" >> $out/nix-support/cc-ldflags echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags + for dir in ${gcc.cc}/lib/gcc/${targetConfig}/*/include; do + echo "-isystem $dir" >> $out/nix-support/cc-cflags + done for dir in ${gcc.cc}/include/c++/*; do echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags done