Re:Cake – A C23 compiler frond end written from scratch in C
by ncake on Tuesday September 13, 2022 @07:02PM
(#32831261)
Cool. I wish CMake included an option to use a custom preprocessor like this.
[ Parent
| on HN ]
Re:Cake – A C23 compiler frond end written from scratch in C
by Matheus28 on Tuesday September 13, 2022 @07:55PM
(#32831636)
It isn't CMake's job to do this. Just have it pass a flag to your compiler to use a custom pre-processor (--no-integrated-cpp -B<path>). Should work... hopefully. Might also have to pipe through the preprocessor again since OP's most likely won't be processing #includes and such