- Now fixed to ensure substitution value isn't of unicode type on Python 2.6-7.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188384
91177308-0d34-0410-b5e6-
96231b3b80d8
if sys.platform in ['win32'] and execute_external:
# Don't pass dosish path separator to msys bash.exe.
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.clang,