I’m writing support for a new target in
rustc. So far I can make staticlibs work correctly, and inline assembly, so that’s great IMO.
Here’s my current challenges, I’d love to hear your thoughts:
- Rustbuild fails for me. It’s trying to use the stage0 compiler to build my stage1 libstd. This looks like it is wrong for only my use case: bootstrapping stage1 for which no stage0-supporting-my-target exists yet. Can anyone confirm this, or am I misusing/misconfiguring rustbuild?
- If I ignore that failure and just use my new stage1
rustcto try to build core by hand, I get a failure during
LLVMRustWriteOutputFile()on one particular compile. It’s an assertion in my target, so I’m pretty sure I can take it from here. But it might be easier to investigate if I could dump the input to a file. It still encounters the assertion when I use -C emit=llvm-ir. I guess there’s no way to dump anything higher-level than that right?