Support cross compiling in bootstrap#25143
Conversation
|
I don't know if this is a use case we want to support. I think the goal of |
|
Redox OS haven't port Clang/LLD so I can't use |
That's kind of surprising. It really should not be a lot of work... could probably do it in an evening if you follow an example like Managarm:
After that, you'll need to add an However, the other problem you'll run into is likely #23905. You might be able to supply a custom |
|
Thank you for these pointers, I'll try to port them and make I have done tagging I'll close this right now, thanks! |
I'm in process to port Zig into a new OS so I use
bootstrap.cto make porting process easier. At the last step,gccfails to link because it links into wrong libc but there's no way to add custom compiler envars intobootstrap.c.This PR aims to bring support cross compiling in
bootstrap.cusing these new flags:ZIG_HOST_TARGET_CCZIG_HOST_TARGET_CFLAGSZIG_HOST_TARGET_LDFLAGSI've confirmed it linking to the correct
libcafter I set these flags.