其他分享
首页 > 其他分享> > llvm.107.clang-options

llvm.107.clang-options

作者:互联网

clang options

 

1. Hidden options

--help-hidden

Display help for hidden options

 

2. Frontend options

"clang -cc1 is the frontendclang is the driver." Ref[1]

 

"Some clang command line options are driver-only options, some are frontend-only options.

Frontend-only options are intended to be used only by clang developers.

Users should not run clang -cc1 directly, because -cc1 options are not guaranteed to be stable." Ref[1]

 

"you can run clang -Xclang <option> ... to force the driver pass <option> to clang -cc1." Ref[1]

 

2.1 -###

-###                    Print (but do not run) the commands to run for this compilation

"You can use the -### command-line option to print out the "frontend flags" that have been translated from the driver" Ref[2] 

 

 

 

 


Reference

1. I run clang -cc1 ... and get weird errors about missing headers

https://clang.llvm.org/docs/FAQ.html

 

2. LLVM Techniques Tips and Best Practices Clang and Middle-End Libraries

by Min-Yih Hsu

 

标签:run,cc1,clang,llvm.107,only,Ref,options
来源: https://www.cnblogs.com/cwgk/p/16410813.html