News for hackers. Stuff that matters.
Re:Chibicc – A Small C Compiler by rui314 on Sunday November 13, 2022 @07:45AM (#33582537)
CRT object files which contain process startup routines are not in a fixed directory. Unfortunately compilers have to be hard-coded to contain an appropriate directory name.
Re:Chibicc – A Small C Compiler by einpoklum on Sunday November 13, 2022 @07:55AM (#33582607)
Well, can't that be made a build parameter, that can be determined during build configuration? CMake'ifying the project might help you get there perhaps?
Re:Chibicc – A Small C Compiler by messe on Sunday November 13, 2022 @08:11AM (#33582712)
Or just check for an environment variable in the Makefile? No need to add the complexity of cmake.