-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Howto cross build via build-cargo #35
Comments
definitely possible, but that can quickly fill up your build-target list. Most IDEs offer a way to change the cross-target independently of the build-targets, if there were such a package, |
that would be a solution too. So I vote for such a change :) |
But for the start of this feature it would be sufficient to recognize the environment variable ARCH and use this for the --target parameter, if available. What do you think? |
I'll happily integrate such an atom-package, but first we'd need to write one... It should probably allow to choose the toolchain, too. I don't know much about atom packages, but I'll happily help developing it if you care to start.
that's already possible by setting the |
Nice! Thanks. So thats a start at least. Such a package would need to extend the Atom API to provide a way to change the target arch. Thanks for your hints! |
Looks like RUSTFLAGS (AFAIK it's without "_") don't work :(. Just to share my tests. I know it's not build-cargo specific. Good Build:
Bad Build with RUSTFLAGS:
|
hmm... looks like cargo needs to know about the target. |
RUSTFLAGS is for rustc, right? |
actually... maybe we don't need an extra package. We could simply add the target + toolchain chooser as an additional menu to this package. |
You just need to select a target toolchain once, which would be e.g. via menu entry under packages. |
Hey!
currently I'm able to crossbuild a rust project via cargo with the --target parameter on commandline.
Do you think that build-cargo could find supported target platforms and e.g. make it available via F7 (build targets) ?
e.g.
Cargo: build (arm-none-linux-gnueabi) (release)
Cargo: build (arm-none-linux-gnueabi) (debug)
Cargo: build (x86_64-pc-windows-gnu) (release)
Cargo: build (x86_64-pc-windows-gnu) (debug)
Cargo: build (x86_64-pc-windows-msvc) (release)
Cargo: build (x86_64-pc-windows-msvc) (debug)
Cheers,
Ephraim
The text was updated successfully, but these errors were encountered: