From f23c76113d055fc3e220715a4ba5b8c57195866f Mon Sep 17 00:00:00 2001 From: Adam Kallai Date: Thu, 6 Jul 2023 14:00:44 +0200 Subject: [PATCH] Add Windows support to lit.cfg * Enable running Flang tests on Windows --- test/lit.cfg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/lit.cfg b/test/lit.cfg index 2810920db7c..3e4c537f99c 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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. @@ -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'))