Skip to content

Commit e1052b0

Browse files
committed
[lit] Allow overriding each individual command.
1 parent 58066bd commit e1052b0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lit.cfg

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,19 @@ if os.path.exists(swiftpm_srcdir):
151151
# Find the tools we need.
152152
lit_config.note("testing using 'FileCheck': %r" % (filecheck_path,))
153153

154-
swift_path = os.path.join(package_path, "usr", "bin", "swift")
154+
swift_path = lit_config.params.get(
155+
"swift",
156+
os.path.join(package_path, "usr", "bin", "swift"))
155157
lit_config.note("testing using 'swift': %r" % (swift_path,))
156158

157-
swiftc_path = os.path.join(package_path, "usr", "bin", "swiftc")
159+
swiftc_path = lit_config.params.get(
160+
"swiftc",
161+
os.path.join(package_path, "usr", "bin", "swiftc"))
158162
lit_config.note("testing using 'swiftc': %r" % (swiftc_path,))
159163

160-
lldb_path = os.path.join(package_path, "usr", "bin", "lldb")
164+
lldb_path = lit_config.params.get(
165+
"lldb",
166+
os.path.join(package_path, "usr", "bin", "lldb"))
161167
lit_config.note("testing using 'lldb': {}".format(lldb_path))
162168

163169
# Verify they exist.

0 commit comments

Comments
 (0)