Revert "Revert "C++: Implement compilation_build_mode""

This commit is contained in:
Calum Grant
2024-11-22 15:48:50 +00:00
committed by GitHub
parent 86c25d0396
commit fcf16848d2
9 changed files with 10699 additions and 1288 deletions

View File

@@ -46,6 +46,22 @@ compilation_args(
string arg : string ref
);
/**
* Optionally, record the build mode for each compilation.
*/
compilation_build_mode(
unique int id : @compilation ref,
int mode : int ref
);
/*
case @compilation_build_mode.mode of
0 = @build_mode_none
| 1 = @build_mode_manual
| 2 = @build_mode_auto
;
*/
/**
* The source files that are compiled by a compiler invocation.
* If `id` is for the compiler invocation