News for hackers. Stuff that matters.
Re:Xz: Can you spot the single character that disabled Linux... by mewpmewp2 on Saturday March 30, 2024 @10:01PM (#39880656)
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.
Re:Xz: Can you spot the single character that disabled Linux... by tsimionescu on Sunday March 31, 2024 @03:23AM (#39882173)
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).
Re:Xz: Can you spot the single character that disabled Linux... by throwaway2037 on Sunday March 31, 2024 @05:59AM (#39882878)
I am a CMake novice. Is that true for CMake in this example?
Re:Xz: Can you spot the single character that disabled Linux... by jcelerier on Sunday March 31, 2024 @07:27AM (#39883258)
Definitely not, cmake's try_compile function even directly supports being passed a source file.
Re:Xz: Can you spot the single character that disabled Linux... by mewpmewp2 on Sunday March 31, 2024 @08:41AM (#39883740)
Put it in a special folder that is ignored from the build.
Re:Xz: Can you spot the single character that disabled Linux... by account42 on Monday April 08, 2024 @09:33AM (#39969562)
That's really not how most build systems work.