forked from rarias/jungle
17 lines
269 B
Nix
17 lines
269 B
Nix
{ wrapCCWith
|
|
, aoccUnwrapped
|
|
}:
|
|
|
|
let
|
|
cc = aoccUnwrapped;
|
|
in wrapCCWith {
|
|
inherit cc;
|
|
|
|
extraBuildCommands = ''
|
|
echo "-isystem ${cc}/include" >> $out/nix-support/cc-cflags
|
|
|
|
wrap aocc $wrapper $ccPath/clang
|
|
wrap aocc++ $wrapper $ccPath/clang++
|
|
'';
|
|
}
|