Skip to content

Commit

Permalink
Add Windows support to lit.cfg
Browse files Browse the repository at this point in the history
* Enable running Flang tests on Windows
  • Loading branch information
kaadam committed Jul 13, 2023
1 parent e09caec commit f23c761
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ import lit.llvm
lit.llvm.initialize(lit_config, config)
lit.llvm.llvm_config.with_system_environment("COMPILER_PATH")

if platform.system() == 'Windows':
lit_config.note('We do not support Windows, but hey, congratulations on porting to Windows!')
raise SystemExit

# Configuration file for the 'lit' test runner.

# name: The name of this test suite.
Expand Down Expand Up @@ -219,7 +215,7 @@ def getClangBuiltinIncludeDir(clang):
dir = cmd.stdout.read().strip()
if sys.platform in ['win32'] and execute_external:
# Don't pass dosish path separator to msys bash.exe.
dir = dir.replace('\\', '/')
dir = dir.replace(b'\\', b'/')
# Ensure the result is an ascii string, across Python2.5+ - Python3.
return str(dir.decode('ascii'))

Expand Down

0 comments on commit f23c761

Please sign in to comment.