Skip to content

Commit e73ef1f

Browse files
committed
[benchmark] Set SWIFT_DETERMINISTIC_HASHING while running benchmarks in regular smoke tests
1 parent ec0fbc0 commit e73ef1f

File tree

1 file changed

+6
-4
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+6
-4
lines changed

utils/swift_build_support/swift_build_support/products/benchmarks.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ def should_test(self, host_target):
5252
return self.args.test_toolchainbenchmarks
5353

5454
def _get_test_environment(self, host_target):
55+
env = {
56+
"SWIFT_DETERMINISTIC_HASHING": "1"
57+
}
5558
if platform.system() == 'Darwin':
5659
# the resulting binaries would search first in /usr/lib/swift,
5760
# we need to prefer the libraries we just built
58-
return {'DYLD_LIBRARY_PATH': os.path.join(
61+
env['DYLD_LIBRARY_PATH'] = os.path.join(
5962
_get_toolchain_path(host_target, self, self.args),
60-
'usr', 'lib', 'swift', 'macosx')}
61-
62-
return None
63+
'usr', 'lib', 'swift', 'macosx')
64+
return env
6365

6466
def test(self, host_target):
6567
"""Just run a single instance of the command for both .debug and

0 commit comments

Comments
 (0)