Skip to content

Conversation

@rintaro
Copy link
Member

@rintaro rintaro commented Aug 30, 2023

Followup to #68082
"Support Macros in Linux" patches was inconsistent with checking platforms. Some only checked LINUX but some matches LINUX|ANDROID|OPENBSD|FREEBSD. Although I don't have tested other platoforms than Linux at all, there's no reason to limit it to Linux. So use the consistent check to match LINUX|ANDROID|OPENBSD|FREEBSD

@rintaro rintaro requested a review from bnbarham August 30, 2023 20:34
@rintaro
Copy link
Member Author

rintaro commented Aug 30, 2023

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Aug 30, 2023

@swift-ci Please Build Toolchain Linux

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

There's also the one or two if(darwin) else cases that we should fix up too

"Support Macros in Linux" patches was inconsistent with checking
platforms. Some only checked 'LINUX' but some matches
'LINUX|ANDROID|OPENBSD|FREEBSD'. Although I don't have tested other
platoforms than Linux at all, there's no reason to limit it to Linux.
So use the consistent check to match 'LINUX|ANDROID|OPENBSD|FREEBSD'
@rintaro
Copy link
Member Author

rintaro commented Aug 30, 2023

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Aug 30, 2023

@swift-ci Please Build Toolchain Linux

@rintaro rintaro merged commit f6a4aa1 into swiftlang:main Aug 31, 2023
@finagolfin
Copy link
Member

Should macros work on linux now? I tried downloading this toolchain from the CI and it still fails on Doug's macro examples repo:

> swift build
...
/home/foo/swift-macro-examples/MacroExamplesPlugin/ObservableMacro.swift:110:28: error: cannot find type 'ConformanceMacro' in scope extension ObservableMacro: ConformanceMacro {

@rintaro rintaro deleted the swift-swift-bsd branch July 22, 2024 18:18
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