Skip to content

Commit

Permalink
mac: Add arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Sep 20, 2020
1 parent 10c4186 commit 16f68da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion azure-pipelines.yml
Expand Up @@ -33,12 +33,18 @@ jobs:
- job: macos_build
displayName: 'Build for macOS'
pool:
vmImage: 'macOS-10.14'
vmImage: 'macOS-latest'
strategy:
matrix:
x64:
TARGET_CPU: x64
arm64:
TARGET_CPU: arm64
steps:
- script: |
sudo xcode-select -switch /Applications/Xcode_12_beta.app/Contents/Developer
displayName: Select XCode 12
condition: eq(variables['TARGET_CPU'], 'arm64')
- template: building/azure-pipelines-template.yml

- job: linux_build
Expand Down
2 changes: 1 addition & 1 deletion base
Submodule base updated 1 files
+2 −0 BUILD.gn
3 changes: 3 additions & 0 deletions nativeui/mac/button_mac.mm
Expand Up @@ -19,6 +19,9 @@
} else if ([button bezelStyle] == NSRoundedBezelStyle) {
NSControlSize size = [[button cell] controlSize];
switch (size) {
#if defined(MAC_OS_VERSION_11_0)
case NSControlSizeLarge:
#endif
case NSRegularControlSize: return nu::InsetsF(4, 6, 7, 6);
case NSSmallControlSize: return nu::InsetsF(4, 5, 6, 5);
case NSMiniControlSize: return nu::InsetsF(0, 1, 1, 1);
Expand Down

0 comments on commit 16f68da

Please sign in to comment.