LLVM &Clang 无法编译支持的拱门 [英] LLVM & Clang can't compile for a supported arch

查看:46
本文介绍了LLVM &Clang 无法编译支持的拱门的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 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.

这篇关于LLVM &Clang 无法编译支持的拱门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆