wrapClangMulti: set gcc_multi_sysroot.langCC
The phoney gcc that we construct for multilib was missing the `langCC` attribute, which `cc-wrapper` needs in order to decide whether or not to add gcc's `libstdc++` headers as an `-isystem` for `clang`.
This commit is contained in:
parent
0e9ef0a07d
commit
c02c5f0860
@ -46,7 +46,13 @@ let
|
||||
libc = gcc_multi_sysroot;
|
||||
};
|
||||
|
||||
gccForLibs = gcc_multi_sysroot // { inherit (glibc_multi) libgcc; };
|
||||
gccForLibs = gcc_multi_sysroot // {
|
||||
inherit (glibc_multi) libgcc;
|
||||
langCC =
|
||||
assert (gcc64.cc.langCC != gcc32.cc.langCC)
|
||||
-> throw "(gcc64.cc.langCC=${gcc64.cc.langCC}) != (gcc32.cc.langCC=${gcc32.cc.langCC})";
|
||||
gcc64.cc.langCC;
|
||||
};
|
||||
};
|
||||
|
||||
in clangMulti
|
||||
|
Loading…
Reference in New Issue
Block a user