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

Fix hostbuild with clang #338

Merged
merged 2 commits into from
Mar 1, 2023
Merged

Fix hostbuild with clang #338

merged 2 commits into from
Mar 1, 2023

Conversation

jschwe
Copy link
Collaborator

@jschwe jschwe commented Mar 1, 2023

Fixes a case where a target which should be built for the host platform, erroneously got a linker flag instructing clang to link for the cross-compile target.

Double negation is always harder to think about, so add a variable
hostbuild_override which can be used in places
where we previously did double negation.
Also change around the `IF` ordering in some cases to remove the negation
 in the argument.
Fixes a case where a target which should be built for the host platform
, erroneously got a linker flag instructing clang to link for the
cross-compile target.
@jschwe jschwe merged commit 5c57821 into master Mar 1, 2023
@jschwe jschwe deleted the fix_hostbuild branch March 1, 2023 17:25
jschwe added a commit to jschwe/corrosion that referenced this pull request Jun 22, 2023
Test cross-compiling with clang.
This should catch the issue fixed in corrosion-rs#338.
Closes corrosion-rs#339.
jschwe added a commit to jschwe/corrosion that referenced this pull request Jun 23, 2023
Test cross-compiling with clang.
This should catch the issue fixed in corrosion-rs#338.
Closes corrosion-rs#339.
jschwe added a commit to jschwe/corrosion that referenced this pull request Jul 30, 2023
Test cross-compiling with clang.
This should catch the issue fixed in corrosion-rs#338.
Closes corrosion-rs#339.
jschwe added a commit to jschwe/corrosion that referenced this pull request Aug 5, 2023
Test cross-compiling with clang.
This should catch the issue fixed in corrosion-rs#338.
Closes corrosion-rs#339.
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.

1 participant