Closed darcagn closed 2 months ago
I wonder if it shouldn't a setting (in config.toml
) instead. It's easy to forget to pass an argument after all... An opinion maybe @antoyo?
That's definitely a reasonable approach -- let me know what you think @antoyo and I'll be happy to adjust my PR to implement this functionality in that way.
@darcagn: I would say: choose the approach that is the most convenient to you since you're the main user of this new flag.
Thanks for your contribution!
This change allows users to specify a custom directory from which to copy the sysroot source code instead of being forced to use the
rust-src
provided with therustup
toolchain. The path is passed to--sysroot-source
during theprepare
stage, like so:This removes a pain point for using rustc_codegen_gcc while creating and testing support for new platforms with architectures without LLVM support.