-
Notifications
You must be signed in to change notification settings - Fork 377
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
Allow setting default build target #624
Conversation
ce91128
to
22ab4d1
Compare
22ab4d1
to
c226dcb
Compare
c226dcb
to
011a6b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Cant merge right now due to CI being incomplete
Is some action required on my site to complete the CI? |
No, see #609 <3 |
Does this need to be in |
I've opted for using My proposal would be to postpone this feature until cargo config is stabilized as this should make it possible to just parse the output of |
Sounds fair. Ideally I would like to get rid of |
I don't see why this should be postponed as this is very useful and a valid use case. Once the cargo feature is merged this can be reworked in a new release. |
011a6b4
to
48028da
Compare
670: Implement `Cross.toml` deserialization using `serde` r=Emilgardis a=mntns This PR implements the deserialization of the `Cross.toml` config using `serde`. It can therefore be seen as some preliminary work on the issues #657, #664, and is related to #532 on #624. I added some basic documentation as module-level documentation, although I'm not sure whether this is the best place for that. Ideally it should be documentated in the `README.md` at some point. Furthermore, `CrossToml` lives in its own module, but a more suitable place might be the `config` module. Co-authored-by: Niklas Kunz <git@monoton.space>
can you please rebase this again so we can get this merged? There's been some changes with #670 |
The goal is to allow setting the default target to build. This can be done either in `Cross.toml` via ```toml [build] target = "armv7-unknown-linux-musleabihf" ``` or by setting `CROSS_BUILD_TARGET` to the desired value.
N.B. `Debug` is needed for `TargetList` as linting rules demand it.
48028da
to
cbb2382
Compare
912e074
to
4cb1f3e
Compare
I've renamed the option to |
also document the option
4cb1f3e
to
c84fce2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
thanks!
Build succeeded: |
This implements #368
This feature allows to specify the default target to build either in
Cross.toml
or by setting
CROSS_BUILD_TARGET
to avoid the need to always specify--target
.I've opted for
build.target
as this resembles the configuration of cargo.