Add aocc compiler

This commit is contained in:
2025-06-19 22:16:04 +02:00
parent 1e30d9f48c
commit 30c7edafc0
3 changed files with 72 additions and 0 deletions

17
pkgs/aocc/default.nix Normal file
View 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++
'';
}