[Buildroot] [PATCH] package/rustc: RUSTC_TARGET_NAME is needed to build host-rust
sam.voss at gmail.com
Sat May 16 02:35:02 UTC 2020
On Fri, May 8, 2020 at 10:27 AM Romain Naour <romain.naour at gmail.com> wrote:
> As reported on bugzilla , the host-rust package fail when
> the target architecture or the target libc is not supported.
> The error is the following:
> failed to parse TOML configuration 'config.toml': expected a table key, found a right bracket at line 15
> In such case BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS is
> not set thus RUSTC_TARGET_NAME is also not set .
> But RUSTC_TARGET_NAME is needed to generate the file config.toml 
> Add BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS in the host-rust
> The commit  that allowed to select host-rust when the target
> architecture or the target libc is not supported, should have
> allowed to select only host-rustc-bin.
Thanks for fixing this, looks good to me.
> Bug #12691
>  https://bugs.busybox.net/show_bug.cgi?id=12691
>  https://git.buildroot.net/buildroot/tree/package/rustc/rustc.mk?h=2020.05-rc1#n10
>  https://git.buildroot.net/buildroot/tree/package/rust/rust.mk?h=2020.05-rc1#n41
>  025b863e6facb7b219b82ee6ee7a7916c2c3c47e
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
Reviewed-by: Sam Voss <sam.voss at gmail.com>
More information about the buildroot