Hey all,

As soon as I enable --driver-mode=cl and -nostdinc at the same time and
compile a C file, i'm greeted with the error:
clang.exe: error: unknown argument: '-nostdinc'

I'm using the windows release:
clang version 3.8.0 (branches/release_38)
Target: x86_64-pc-windows-msvc

It seems this is supposed to be supported, because MSVCToolChain.cpp in
clang source uses this:

void MSVCToolChain::AddClangSystemIncludeArgs(...) {
    if (DriverArgs.hasArg(options::OPT_nostdinc)) return;
    ...
}


How do I get clang-cl mode to accept -nostdinc?

Thanks,

Ivan
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to