[cfe-dev] Clang command line options

madil90 madil90 at gmail.com
Wed Feb 6 17:55:18 PST 2013


Hi,
   I am creating a clang tool and passing some custom command line options.
When I pass something using -I option, clang searches the directories
recursively, but when I pass something using the -isystem option, it
doesn't. e.g. When I pass the system header using "/usr/include/c++/4.7", it
searches in all folders inside 4.7 too. But when i pass it using "-isystem
/usr/include/c++/4.7", it doesn't search inside the system headers and
instead gives an error "#include "stdarg.h" not found". Why is this
happening? The gcc manual says that both command work exactly the same. The
only difference is that one marks files as system headers while the other
doesn't.

Regards,
Adil



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Clang-command-line-options-tp4030342.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list