From: NAKAMURA Takumi Date: Wed, 26 Jun 2013 10:45:20 +0000 (+0000) Subject: clang/test/lit.cfg: Tweak getClangBuiltinIncludeDir() not to expose dosish path separ... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5407d4af894ed74fc5f7c29010c701ef95af19a3;p=clang clang/test/lit.cfg: Tweak getClangBuiltinIncludeDir() not to expose dosish path separator on MSYS bash.exe, since r184774. $ bin/clang.exe -print-file-name=include e:/path/to/build/bin\..\lib\clang\3.4\include git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184930 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/lit.cfg b/test/lit.cfg index a3578946cd..80243193c1 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -193,7 +193,11 @@ def getClangBuiltinIncludeDir(clang): stdout=subprocess.PIPE) if not cmd.stdout: lit.fatal("Couldn't find the include dir for Clang ('%s')" % clang) - return cmd.stdout.read().strip() + 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('\\', '/') + return dir config.substitutions.append( ('%clang_cc1', '%s -cc1 -internal-isystem %s' % (config.clang,