Fix libcxx include path
This commit is contained in:
parent
10b061aa96
commit
1e54fbdc43
@ -4,7 +4,6 @@
|
||||
, nanos6
|
||||
, icc-unwrapped
|
||||
, wrapCCWith
|
||||
, libstdcxxHook
|
||||
, intel-license
|
||||
}:
|
||||
|
||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
version = "11.0.0";
|
||||
pname = "clang-ompss2";
|
||||
enableParallelBuilding = true;
|
||||
#isClang = true;
|
||||
isClang = true;
|
||||
#isGNU = true;
|
||||
|
||||
isClangWithOmpss = true;
|
||||
|
@ -4,7 +4,6 @@
|
||||
, nanos6
|
||||
, clang-ompss2-unwrapped
|
||||
, wrapCCWith
|
||||
, libstdcxxHook
|
||||
}:
|
||||
|
||||
|
||||
@ -13,12 +12,19 @@ let
|
||||
inherit gcc nanos6;
|
||||
in wrapCCWith rec {
|
||||
cc = clang-ompss2-unwrapped;
|
||||
extraPackages = [ libstdcxxHook ];
|
||||
extraBuildCommands = ''
|
||||
echo "-target ${targetConfig}" >> $out/nix-support/cc-cflags
|
||||
echo "-B${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-cflags
|
||||
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}/include/c++/*; do
|
||||
echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags
|
||||
done
|
||||
for dir in ${gcc.cc}/include/c++/*/${targetConfig}; do
|
||||
echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags
|
||||
done
|
||||
|
||||
echo "--gcc-toolchain=${gcc}" >> $out/nix-support/cc-cflags
|
||||
|
||||
echo "# Hack to include NANOS6_HOME" >> $out/nix-support/setup-hook
|
||||
|
Loading…
Reference in New Issue
Block a user