My develop environment: visual c++ 2010 express in Windows XP.
In clang-2.9, for test/Proprocessor/dependencies-and-pp.c
// RUN: %clang -E -MD -MF %t.d -MT foo -MQ ‘$(bar)’ -MT ‘b az’ -MQ ‘qu ux’ -MQ ’ space’ -o %t %s
will be expended to
D:/MyData/MyProject/llvm/clang_build/test/…/bin/Debug/clang.EXE -E -MD -MF D:\MyData\MyProject\llvm\clang_build\test\Preprocessor\Output\dependencies-and-pp.c.tmp.d -MT foo -MQ ‘$(bar)’ -MT ‘b az’ -MQ ‘qu ux’ -MQ ’ space’ -o D:\MyData\MyProject\llvm\clang_build\test\Preprocessor\Output\dependencies-and-pp.c.tmp D:\MyData\MyProject\llvm\clang-2.9\test\Preprocessor\dependencies-and-pp.c
but clang gives errors:
clang: error: no such file or directory: ‘az’’
clang: error: no such file or directory: ‘ux’’
clang: error: no such file or directory: ‘space’’
however, if I change the (-MT ‘b az’ -MQ ‘qu ux’ -MQ ’ space’) to (-MT “b az” -MQ “qu ux” -MQ " space") (just replace the single quotes to double quotes)
everything will be fine.
I don’t encounter such problem in Linux, hence, I think this problem only occurs in Windows platform.
Does anyone knows how to solve it? or is it a Clang-2.9 bug?
Thx
Wei Hu
http://code.google.com/u/wei.hu.tw/
http://www.csie.ntu.edu.tw/~r88052/