Skip to content

Commit befbbe0

Browse files
committedAug 3, 2024
[swift-testing] Build tweak
* Remove SwiftSyntax product dependency * Correct CMAKE_BUILD_TYPE
1 parent c1c7d45 commit befbbe0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎utils/swift_build_support/swift_build_support/products/swift_testing.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from . import cmake_product
1616
from . import swift
17-
from . import swiftsyntax
17+
1818

1919
class SwiftTesting(cmake_product.CMakeProduct):
2020
@classmethod
@@ -31,8 +31,7 @@ def product_source_name(cls):
3131

3232
@classmethod
3333
def get_dependencies(cls):
34-
return [swift.Swift,
35-
swiftsyntax.SwiftSyntax]
34+
return [swift.Swift]
3635

3736
def should_build(self, host_target):
3837
return True
@@ -44,6 +43,8 @@ def build(self, host_target):
4443
# `install_with_cmake` later which already has the same prefix.
4544
self.cmake_options.define('CMAKE_INSTALL_PREFIX', '')
4645

46+
self.cmake_options.define('CMAKE_BUILD_TYPE', self.args.build_variant)
47+
4748
build_root = os.path.dirname(self.build_dir)
4849
swift_build_dir = os.path.join(
4950
'..', build_root, '%s-%s' % ('swift', host_target))

0 commit comments

Comments
 (0)
Please sign in to comment.