LLVM &Clang 无法编译支持的拱门

2022-01-17 00:00:00 llvm arm clang c++ architecture

在 Ubuntu 64 位下我得到了

Under Ubuntu 64 bit I got

llc --version
LLVM (http://llvm.org/):
  LLVM version 3.1
  Optimized build with assertions.
  Built Oct 15 2012 (18:15:59).
  Default target: x86_64-pc-linux-gnu
  Host CPU: btver1

  Registered Targets:
    arm      - ARM
    mips     - Mips
    mips64   - Mips64 [experimental]
    mips64el - Mips64el [experimental]
    mipsel   - Mipsel
    thumb    - Thumb
    x86      - 32-bit X86: Pentium-Pro and above
    x86-64   - 64-bit X86: EM64T and AMD64

我做不到

clang -march=arm -x c++ /tmp/cpp.cpp 
error: unknown target CPU 'arm'

我在这里遗漏了什么?为什么我不能为 ARM 编译?

I'm missing something here ? Why I can't compile for ARM ?

推荐答案

As 这条评论说这个选项目前在 linux 下还不被支持.

As this comment says this option it's not supported yet under linux, for now.

相关文章