-
Notifications
You must be signed in to change notification settings - Fork 6
Readiness: Baseline Makefile.toml sync from patina-readiness-tool #62
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
Open
vineelko
wants to merge
1
commit into
OpenDevicePartnership:main
Choose a base branch
from
vineelko:users/vineelko/readiness_makefile_fix_1222
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
is this possible? Cross compilation support when it comes to target triples where there is an "STD" that relies on the operating system (e.g. a target triple with an OS) is not exactly supported from my understanding.
e.g. I can't really compile an aarch64-unknown-linux target on a aarch64-pic-windows-msvc target).
Seems like you should just not specify a target and let the compiler auto pick the host target.
Just have a generic
build-validation-host-binaryIf you need to set some feature flags or something based off the target tripple then you could not specify the target, then have a duckscript use the
CARGO_MAKE_RUST_TARGET_TRIPLEto set feature flags.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.
Then CI would just compile a different target of the binary based off the host its being run on.
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.
The problem here is that, without explicitly specifying the target triple, the host binaries are produced under
target/debug/...instead oftarget/<triple>/debug. This is usually not a problem for a normal development workflow, but if we want to release all flavors of host binaries (x64 and aarch64) using a workflow like.github/workflows/publish-binaries.yml, I am not sure how to identify each flavor when copying the artifacts.So the
patina-readiness-toolrepo already has an explicit way of specifying the target triple for consistency(across platforms/arch), and unfortunately themakefile.tomlinpatina-devopsis out of sync. This is being addressed in this PR.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.
So I see two routes -
rustc -vVorcargo metadata(see below) to grab the target triple, then set the triple so that it goes in the folderThere 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.
I am not a big fan of duck script 😄 and as mentioned before this is mainly to address below