[cfe-users] clang -cc1 with -c gives 'unknown argument error

Larry Evans via cfe-users cfe-users at lists.llvm.org
Fri Mar 3 09:51:25 PST 2017

According to:


-cc1 with -c should work; however, it doesn't:

--{--cut here--
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
uname -a
Linux lje-OptiPlex-9020 4.4.0-65-generic #86-Ubuntu SMP Thu Feb 23 
17:49:58 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
cat test.cpp
int main()
   return 0;

-cc1 -c -print-stats test.cpp
error: unknown argument: '-c'
Makefile:31: recipe for target 'bench' failed
make: *** [bench] Error 1

Compilation exited abnormally with code 2 at Fri Mar  3 11:46:43

--}--cut here--

Please, what am I doing wrong?


More information about the cfe-users mailing list