Skip to content

Commit 9742fef

Browse files
authored
Merge pull request #27957 from compnerd/build-is-not-path
test: use `inferSwiftBinary` to find the reflection tool
2 parents 2d73686 + 6eb53a0 commit 9742fef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/lit.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,8 +1594,7 @@ config.substitutions.append(('%target-swift-ide-test\(mock-sdk:([^)]+)\)',
15941594
config.substitutions.append(('%target-swift-ide-test', "%s -swift-version %s" % (config.target_swift_ide_test, swift_version)))
15951595

15961596
if not hasattr(config, 'target_swift_reflection_test'):
1597-
config.target_swift_reflection_test = lit.util.which(
1598-
swift_reflection_test_name, config.environment['PATH'])
1597+
config.target_swift_reflection_test = inferSwiftBinary(swift_reflection_test_name)
15991598

16001599
config.substitutions.append(('%target-swift-reflection-test', config.target_swift_reflection_test))
16011600

0 commit comments

Comments
 (0)