Skip to content

SIL: support non-clang compilers again #40298

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
Nov 29, 2021

Conversation

compnerd
Copy link
Member

The toolchain has traditionally been buildable with clang, cl (MSVC),
and gcc. __has_feature is a clang-specific directive, ensure that we
are portable to other compilers by providing a definition of the macro
incase it is not available (which also includes older clang releases).

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

The toolchain has traditionally been buildable with clang, cl (MSVC),
and gcc.  `__has_feature` is a clang-specific directive, ensure that we
are portable to other compilers by providing a definition of the macro
incase it is not available (which also includes older clang releases).
@compnerd
Copy link
Member Author

CC: @eeckstein

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit e1518ea into swiftlang:main Nov 29, 2021
@compnerd compnerd deleted the there-cannot-be-only-one branch November 29, 2021 05:28
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