From 1d3efc690cc877116628930d2d5591fb36de6069 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 dd0a426..90e5469 100644 --- a/pkgs/llvm-ompss2/default.nix +++ b/pkgs/llvm-ompss2/default.nix @@ -44,6 +44,9 @@ in wrapCCWith { echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $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