Skip to content

Commit 3a4d99e

Browse files
committed
[swift_build_support] We don't run benchmarks on simulator platforms.
1 parent 8a2fd16 commit 3a4d99e

File tree

1 file changed

+4
-3
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+4
-3
lines changed

utils/swift_build_support/swift_build_support/targets.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def supports_benchmark(self):
4545

4646
class DarwinPlatform(Platform):
4747
def __init__(self, name, archs, sdk_name=None, is_simulator=False):
48-
super(DarwinPlatform, self).__init__(name, archs, sdk_name)
4948
self.is_simulator = is_simulator
49+
super(DarwinPlatform, self).__init__(name, archs, sdk_name)
5050

5151
@property
5252
def is_embedded(self):
@@ -55,8 +55,9 @@ def is_embedded(self):
5555

5656
@property
5757
def supports_benchmark(self):
58-
# By default, on Darwin we support benchmarks.
59-
return True
58+
# By default, on Darwin we support benchmarks on all non-simulator
59+
# platforms.
60+
return not self.is_simulator
6061

6162

6263
class Target(object):

0 commit comments

Comments
 (0)