$ 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
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,