8000 Cross-compilation assistance: Help text "cross-compile" references are misleading · Issue #728 · heroku/libcnb.rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cross-compilation assistance: Help text "cross-compile" references are misleading #728
Closed
@edmorley

Description

@edmorley

The current cross compilation assistance text uses phases like:

For cross-compilation from Linux to x86_64-unknown-linux-musl, a C compiler and
linker for the target platform must be installed on your computer.

Whilst that's accurate for some platforms and host architectures, it's not correct for cases where the host architecture matches the target architecture - since in those cases no cross-compilation is taking place. Instead the key takeaway should be "using musl".

Rather than try and customise the message here for every host/target combination, I think we could instead still use a generic message, but phrase it with the emphasis on "in order to make the packaged buildpack portable, we need to use musl rather than glibc, which requires the relevant musl toolchain" etc.

See:
https://github.com/heroku/libcnb.rs/blob/main/libcnb-package/src/cross_compile.rs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0