Skip to content
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

Cross build fix #227

Merged
merged 9 commits into from
Apr 13, 2023
Merged

Cross build fix #227

merged 9 commits into from
Apr 13, 2023

Conversation

DmitriyMusatkin
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -26,7 +26,7 @@ def looks_like_code(path):
return False


def _apply_value(obj, key, new_value, apply_before=True):
def _apply_value(obj, key, new_value, apply_before=False):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: applying before by default is arguably wrong. we eval config in arch -> host -> target -> compiler -> version order, and we need to apply them in the same order, ex. host sets cmake flag to on, but we want to disable that cmake flag for a certain compiler, then we need to make sure compiler config value comes after host config value (before it was always inserted at the start).

This is just a spot fix and we do need to address how cmake flags are handled in a more generic way

@@ -550,7 +550,7 @@ class PKG_TOOLS(Enum):
},
'gcc': {
'hosts': ['linux', 'manylinux', 'al2012', 'al2', 'freebsd'],
'targets': ['linux', 'freebsd'],
'targets': ['linux', 'freebsd', 'android'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: there was a bug in old versions where it would always use default compiler targets to determine whether cross-compile is supported (and default specified all possible targets as supported). that bug was fixed, but data was not updated to indicate that gcc can cross compile to andorid

@DmitriyMusatkin DmitriyMusatkin merged commit 18fbe9f into main Apr 13, 2023
@DmitriyMusatkin DmitriyMusatkin deleted the cross-build-fix branch April 13, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants