Files
swift-mirror/test/CAS/lit.local.cfg
Saleem Abdulrasool 1caeb09f74 test: enable CAS tests on Windows
Enable the CAS test suite to execute on Windows.
2025-12-16 09:49:07 -08:00

15 lines
619 B
INI

# Make a local copy of the substitutions.
config.substitutions = list(config.substitutions)
def get_target_os():
import re
(run_cpu, run_vendor, run_os, run_version) = re.match('([^-]+)-([^-]+)-([^0-9]+)(.*)', config.variant_triple).groups()
return run_os
import os
if get_target_os() in ('windows-msvc',):
config.substitutions.insert(0, (r'%plugin\(([^)]+)\)', SubstituteCaptures(os.path.join(config.llvm_tools_dir, r'%target-library-name(\1)'))))
else:
config.substitutions.insert(0, (r'%plugin\(([^)]+)\)', SubstituteCaptures(os.path.join(config.llvm_libs_dir, r'%target-library-name(\1)'))))