Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mewpmewp2
on March 31, 2024
|
parent
|
context
|
favorite
| on:
Xz: Can you spot the single character that disable...
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.
tsimionescu
on March 31, 2024
[–]
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).
account42
on April 8, 2024
|
parent
|
next
[–]
That's really not how most build systems work.
throwaway2037
on March 31, 2024
|
parent
|
prev
|
next
[–]
I am a CMake novice. Is that true for CMake in this example?
jcelerier
on March 31, 2024
|
root
|
parent
|
next
[–]
Definitely not, cmake's try_compile function even directly supports being passed a source file.
mewpmewp2
on March 31, 2024
|
parent
|
prev
[–]
Put it in a special folder that is ignored from the build.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: