Skip to content

Commit 17ddcda

Browse files
authored
build: specify a compiler target for pythonkit on macOS
Because the rest of the components have a deployment target of 10.13 explicitly, pass the same triple for the PythonKit build.
1 parent 3d9f753 commit 17ddcda

File tree

1 file changed

+3
-0
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+3
-0
lines changed

utils/swift_build_support/swift_build_support/products/pythonkit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def build(self, host_target):
5656
self.args.install_destdir),
5757
'-D', 'CMAKE_MAKE_PROGRAM={}'.format(self.toolchain.ninja),
5858
'-D', 'CMAKE_Swift_COMPILER={}'.format(swiftc),
59+
# SWIFT_ENABLE_TENSORFLOW
60+
'-DCMAKE_Swift_COMPILER_TARGET=x86_64-apple-macosx10.13' if host_target.startswith('macosx') else '',
61+
# SWIFT_ENABLE_TENSORFLOW END
5962
'-B', self.build_dir,
6063
'-S', self.source_dir,
6164
])

0 commit comments

Comments
 (0)