Skip to content

Commit 96ce6d3

Browse files
authored
Merge pull request #34692 from compnerd/swift-apis-variant
build: ensure that we build swift-apis in the correct variant
2 parents 86d9c82 + 3f177e7 commit 96ce6d3

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

utils/swift_build_support/swift_build_support/products/tensorflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def build(self, host_target):
6464
self.toolchain.cmake,
6565
'-G', 'Ninja',
6666
'-D', 'BUILD_SHARED_LIBS=YES',
67+
'-D', 'CMAKE_BUILD_TYPE={}'.format(
68+
'Release' if self.is_release() else 'Debug'),
6769
'-D', 'CMAKE_INSTALL_PREFIX={}'.format(
6870
self.install_toolchain_path(host_target)),
6971
'-D', 'CMAKE_MAKE_PROGRAM={}'.format(self.toolchain.ninja),

0 commit comments

Comments
 (0)