编译LLVM时缺少选项

时间:2012-10-02 00:26:27

标签: llvm

当我通过发行版(archlinux)使用LLVM包时,我有多个可用的命令行选项(我正在使用llvm-link -help来查看它们。)

OPTIONS:
  -asm-verbose                                 - Add comments to directives.
  -cppfname=<function name>                    - Specify the name of the generated function
  -cppfor=<string>                             - Specify the name of the thing to generate
  -cppgen                                      - Choose what kind of output to generate
    =program                                   -   Generate a complete program
    =module                                    -   Generate a module definition
    =contents                                  -   Generate contents of a module
    =function                                  -   Generate a function definition
    =functions                                 -   Generate all function definitions
    =inline                                    -   Generate an inline function
    =variable                                  -   Generate a variable definition
    =type                                      -   Generate a type definition
  -disable-spill-fusing                        - Disable fusing of spill code into instructions
  -enable-correct-eh-support                   - Make the -lowerinvoke pass insert expensive, but correct, EH code

  ... many more ...

但是,从源代码构建LLVM时,我没有得到这些选项:

OPTIONS:
  -f                - Enable binary output on terminals
  -help             - Display available options (-help-hidden for more)
  -o=<filename>     - Override output filename
  -print-after-all  - Print IR after each pass
  -print-before-all - Print IR before each pass
  -stats            - Enable statistics output from program
  -time-passes      - Time each pass, printing elapsed time for each on exit
  -v                - Print information about actions taken
  -verify-dom-info  - Verify dominator info (time consuming)
  -verify-loop-info - Verify loop info (time consuming)
  -version          - Display the version of this program

为什么?

1 个答案:

答案 0 :(得分:0)

您的发行版提供的构建会破坏某些内容。你展示的帮助输出(第一个)肯定是假的。你应该向archlinux报告bug。