[cfe-dev] problem to pass parameter to clang

Shang Yu yusunn at gmail.com
Wed Jul 18 17:12:26 PDT 2012


Hi dear all,
I've found there is a problem to pass an Separate option with -Xclang
option, look the following example:
clang -Xclang -diagnostic-log-file debug.log -c test.cpp
this line will fail and the following line will be ok
clang -Xclang -diagnostic-log-file -Xclang debug.log -c test.cpp
-Xclang itself is a Separate option which can accept only one
parameter, so in the first line debug.log will
not be parsed as part of -diagnostic-log-file but as an input.
Any suggestion ? thanks in advance .



More information about the cfe-dev mailing list