[LLVMbugs] [Bug 9249] New: clang --help doesn't list useful options

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 19 01:33:09 PST 2011


           Summary: clang --help doesn't list useful options
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

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,<arg>               Pass the comma separated arguments in <arg> to the
  -Wl,<arg>               Pass the comma separated arguments in <arg> to the
  -Wp,<arg>               Pass the comma separated arguments in <arg> to the
  -Xanalyzer <arg>        Pass <arg> to the static analyzer
  -Xassembler <arg>       Pass <arg> to the assembler
  -Xclang <arg>           Pass <arg> to the clang compiler
  -Xlinker <arg>          Pass <arg> to the linker
  -Xpreprocessor <arg>    Pass <arg> 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
                          Generate runtime checks for undefined behavior.
  -flimit-debug-info      Limit debug information produced to reduce size of
debug binary
  -o <file>               Write output to <file>
  -pipe                   Use pipes between commands, when possible
  -print-file-name=<file> Print the full library path of <file>
  -print-libgcc-file-name Print the library path for "libgcc.a"
  -print-prog-name=<name> Print the full program path of <name>
  -print-search-dirs      Print the paths used for finding libraries and
  -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 <value>
                          Resolve file paths relative to the specified
  -x <language>           Treat subsequent input files as having type

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list