Skip to content

Swift Basic/Driver recognizes OpenBSD. #30083

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

Merged
merged 1 commit into from
Feb 29, 2020

Conversation

3405691582
Copy link
Member

Add the platform conditional and set up other basics for the toolchain.

The ConditionalCompilation tests are updated to match, since otherwise
they seem to trip when building on non-OpenBSD platforms.

This is orthogonal to pr #30082, which needs to wait for pending build system changes. This can proceed independently, but can wait if necessary.

class LLVM_LIBRARY_VISIBILITY OpenBSD : public GenericUnix {
protected:
std::string getDefaultLinker() const override;

Copy link
Member

Choose a reason for hiding this comment

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

Unnecessary whitespace

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed.

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

I think it would be nice to have a test to ensure that lld is invoked by default for OpenBSD.

Add the platform conditional and set up other basics for the toolchain.

The ConditionalCompilation tests are updated to match, since otherwise
they seem to trip when building on non-OpenBSD platforms. The
Driver/linker test is updated to ensure lld is passed on this platform.
Note that OpenBSD calls "x86_64" as "amd64", so we use that name for the
architecture instead of trying to alias one to the other, as this makes
things simpler.
@3405691582 3405691582 force-pushed the OpenBSD_Port_BasicDriver branch from 714fe26 to 0d3b92d Compare February 27, 2020 22:16
@3405691582
Copy link
Member Author

I think it would be nice to have a test to ensure that lld is invoked by default for OpenBSD.

Added to Driver/linker.swift, cribbing off existing stanzas, since it was simple enough.

@compnerd
Copy link
Member

@swift-ci please test

@CodaFi
Copy link
Contributor

CodaFi commented Feb 29, 2020

Cool!

⛵️

@CodaFi CodaFi merged commit bd30df9 into swiftlang:master Feb 29, 2020
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.

4 participants