[cfe-dev] test/Preprocessor/dependencies-and-pp.c failed in clang-2.9 in WinXP (-MT 'b az' -MQ 'qu ux' -MQ ' space')

Wei wei.hu.tw at gmail.com
Wed May 25 21:05:13 PDT 2011


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110526/5a032bc1/attachment.html>


More information about the cfe-dev mailing list