Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Fix enum typedef for older mac SDKs#136

Merged
dnfield merged 4 commits into
flutter-team-archive:mainfrom
dnfield:build
Apr 14, 2022
Merged

Fix enum typedef for older mac SDKs#136
dnfield merged 4 commits into
flutter-team-archive:mainfrom
dnfield:build

Conversation

@dnfield

@dnfield dnfield commented Apr 13, 2022

Copy link
Copy Markdown
Contributor

I .. I forget how to write ObjC.

I'm going to let CI finish on flutter-team-archive/engine#32658 (which currently points to my fork) before landing this.

@dnfield
dnfield requested review from bdero and chinmaygarde April 13, 2022 23:47
@dnfield dnfield mentioned this pull request Apr 14, 2022
// machines with lower SDK versions than 11.0.s
#if !defined(MAC_OS_X_VERSION_11_0) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_11_0
typedef enum MTLCommandEncoderErrorState : NSInteger {
#if !defined(MAC_OS_VERSION_11_0) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_VERSION_11_0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Need a guard for the macOS 12 defines too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So once Mac Web engine rolls we can remove the first block here - we won't be able to remove the second until we further upgrade.

@dnfield

dnfield commented Apr 14, 2022

Copy link
Copy Markdown
Contributor Author

With this patch applied all impeller related failures on flutter-team-archive/engine#32658 are resolved.

@dnfield
dnfield merged commit a93986f into flutter-team-archive:main Apr 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants