Skip to content

Commit 458a949

Browse files
build: support apple silicon (arm64 darwin) builds (#49)
* build: support apple silicon (arm64 darwin) builds * Update CHANGELOG.md
1 parent 225d908 commit 458a949

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
## [Unreleased]
88

99
- Fixed a bug on Solaris where copying archives failed.
10+
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
1011

1112
## [0.3.0] - 2020-06-06
1213

pylib/gyp/generator/make.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ def WriteSources(
13421342
)
13431343

13441344
if self.flavor == "mac":
1345-
cflags = self.xcode_settings.GetCflags(configname)
1345+
cflags = self.xcode_settings.GetCflags(configname, arch=config.get('xcode_configuration_platform'))
13461346
cflags_c = self.xcode_settings.GetCflagsC(configname)
13471347
cflags_cc = self.xcode_settings.GetCflagsCC(configname)
13481348
cflags_objc = self.xcode_settings.GetCflagsObjC(configname)
@@ -1637,6 +1637,7 @@ def WriteTarget(
16371637
configname,
16381638
generator_default_variables["PRODUCT_DIR"],
16391639
lambda p: Sourceify(self.Absolutify(p)),
1640+
arch=config.get('xcode_configuration_platform')
16401641
)
16411642

16421643
# TARGET_POSTBUILDS_$(BUILDTYPE) is added to postbuilds later on.

0 commit comments

Comments
 (0)