Skip to content
Snippets Groups Projects
Commit eff4a95e authored by Daniel Dunbar's avatar Daniel Dunbar
Browse files

[tests] Reapply r188354, ensure subsitution string is ascii.

 - Now fixed to ensure substitution value isn't of unicode type on Python 2.6-7.

llvm-svn: 188384
parent a6821921
No related branches found
No related tags found
No related merge requests found
...@@ -200,7 +200,8 @@ def getClangBuiltinIncludeDir(clang): ...@@ -200,7 +200,8 @@ def getClangBuiltinIncludeDir(clang):
if sys.platform in ['win32'] and execute_external: if sys.platform in ['win32'] and execute_external:
# Don't pass dosish path separator to msys bash.exe. # Don't pass dosish path separator to msys bash.exe.
dir = dir.replace('\\', '/') dir = dir.replace('\\', '/')
return dir # Ensure the result is an ascii string, across Python2.5+ - Python3.
return str(dir.decode('ascii'))
config.substitutions.append( ('%clang_cc1', '%s -cc1 -internal-isystem %s' config.substitutions.append( ('%clang_cc1', '%s -cc1 -internal-isystem %s'
% (config.clang, % (config.clang,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment