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

Added musl targets #1067

Merged
merged 2 commits into from
Oct 27, 2020
Merged

Added musl targets #1067

merged 2 commits into from
Oct 27, 2020

Conversation

aig787
Copy link
Contributor

@aig787 aig787 commented Oct 27, 2020

Building off of #935, I added musl targets for i686 and x86_64 using clang as the compiler. Addresses #713

mk/travis.sh Outdated
@@ -73,6 +73,12 @@ if [[ ! "$TARGET_X" =~ "x86_64-" ]]; then
fi
fi

# This stanza is separate from the above because MUSL requires a target install,
# but does *not* require special linking / multilib.
Copy link
Owner

Choose a reason for hiding this comment

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

Let's remove this comment and...

mk/travis.sh Outdated
@@ -73,6 +73,12 @@ if [[ ! "$TARGET_X" =~ "x86_64-" ]]; then
fi
fi

# This stanza is separate from the above because MUSL requires a target install,
# but does *not* require special linking / multilib.
if [[ "$TARGET_X" =~ .*"-unknown-linux-musl" ]]; then
Copy link
Owner

Choose a reason for hiding this comment

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

Let's move the rustup target add from up above to here. We can change the condition to [ "$TARGET_X" =~ .*"-unknown-linux-musl" || ! "$TARGET_X" =~ "x86_64-" ]]` or whatever Bashism.

That way, we have only one place where we do rustup target add. This will be important for other refactoring I am doing.

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.

2 participants