forked from rarias/jungle
Add aocc compiler
This commit is contained in:
17
pkgs/aocc/default.nix
Normal file
17
pkgs/aocc/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
wrapCCWith,
|
||||
aoccUnwrapped,
|
||||
}:
|
||||
|
||||
let
|
||||
cc = aoccUnwrapped;
|
||||
in
|
||||
wrapCCWith {
|
||||
inherit cc;
|
||||
nixSupport.cc-cflags = [ "-isystem ${cc}/include" ];
|
||||
|
||||
extraBuildCommands = ''
|
||||
wrap aocc $wrapper $ccPath/clang
|
||||
wrap aocc++ $wrapper $ccPath/clang++
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user