llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.61k stars 11.82k forks source link

clang --help doesn't list useful options #9621

Closed edwintorok closed 9 years ago

edwintorok commented 13 years ago
Bugzilla Link 9249
Resolution FIXED
Resolved on Jun 13, 2015 08:28
Version trunk
OS Linux
CC @FlashSheridan

Extended Description

All that clang --help lists are the ones below. It doesn't list -no-integrated-as, -mllvm, -fexceptions, or any of the other useful command-line flags.

-### Print the commands to run for this compilation --analyze Run the static analyzer --help Display available options --relocatable-pch Build a relocatable precompiled header -E Only run the preprocessor -ObjC++ Treat source input files as Objective-C++ inputs -ObjC Treat source input files as Objective-C inputs -Qunused-arguments Don't emit warning for unused driver arguments -S Only run preprocess and compilation steps -Wa, Pass the comma separated arguments in to the assembler -Wl, Pass the comma separated arguments in to the linker -Wp, Pass the comma separated arguments in to the preprocessor -Xanalyzer Pass to the static analyzer -Xassembler Pass to the assembler -Xclang Pass to the clang compiler -Xlinker Pass to the linker -Xpreprocessor Pass to the preprocessor -c Only run preprocess, compile, and assemble steps -emit-ast Emit Clang AST files for source inputs -emit-llvm Use the LLVM representation for assembler and object files -fcatch-undefined-behavior Generate runtime checks for undefined behavior. -flimit-debug-info Limit debug information produced to reduce size of debug binary -o Write output to -pipe Use pipes between commands, when possible -print-file-name= Print the full library path of -print-libgcc-file-name Print the library path for "libgcc.a" -print-prog-name= Print the full program path of -print-search-dirs Print the paths used for finding libraries and programs -rewrite-objc Rewrite Objective-C source to C++ -save-temps Save intermediate compilation results -time Time individual commands -v Show commands to run and use verbose output -working-directory Resolve file paths relative to the specified directory -x Treat subsequent input files as having type

llvmbot commented 9 years ago

All of these are now listed.

lattner commented 13 years ago

Note that -mllvm isn't available in release-without-assert builds.