Enables Haiku to build llvm for secondary architectures.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Original author is "Jerome Duval <jerome.duval@gmail.com>" I don't have permission to modify this, can author be updated? (I don't have permission to)
Comment Actions
This is absolutely not how the clang driver is supposed to work. No conditional compilation.
Comment Actions
No worries. I was wondering if this one would match llvm's goals.
Do you see any iteration of these changes that would be accepted? (not using define's, etc)
We currently support "hybrid" operating system builds where we compile a secondary toolchain / abi.
A current functional example of this is we offer a gcc2 compiler + support libraries, and then also offer a gcc7 compiler + support libraries.
$ getarch x86_gcc2 $ gcc --version ~gcc 2.95 $ gcc test.c -o test $ ./test test is a functional binary generated by gcc2 and run using the gcc2 ABI + libraries. $ setarch x86 $ getarch x86 $ gcc --version ~gcc 7.3 $ gcc test.c -o test $ ./test test is now a functional binary generated by gcc7 and run using the gcc7 ABI's + libraries