2016-08-24 84 views

回答

0

當您運行鐺LLVM編譯器的幫助: 「鐺++」,例如:

clang++ -help,你會看到可能的參數可以傳遞:

OVERVIEW: clang LLVM compiler 

USAGE: clang++ [options] <inputs> 

OPTIONS: 
    -###     Print (but do not run) the commands to run 
for this compilation 
    --analyze    Run the static analyzer 
    -arcmt-migrate-emit-errors 
          Emit ARC errors even if the migrator can  fix them 
    -arcmt-migrate-report-output <value> 
          Output path for the plist report 
    --cuda-device-only  Do device-side CUDA compilation only 
    --cuda-host-only  Do host-side CUDA compilation only 
    --cuda-path=<value>  CUDA installation path 
    -cxx-isystem <directory> 
          Add directory to the C++ SYSTEM include   search path 
    -c      Only run preprocess, compile, and assemble steps 
    ... 
    ... 
    ... 

正如你所看到的-c標誌的解釋是:只運行預處理,編譯和彙編步驟