Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think main issue was that it was embedded in the file itself like that. Would have preferred to have it in a separate valid C file with syntax highlighting etc and being parsed from that file.


Perhaps, but given how most build systems work, that would complicate things in other ways (since build systems often try to compile all .c files).


That's really not how most build systems work.


I am a CMake novice. Is that true for CMake in this example?


Definitely not, cmake's try_compile function even directly supports being passed a source file.


Put it in a special folder that is ignored from the build.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: