LLVM & Clang can't compile for a supported arch

后端 未结 6 1206
花落未央
花落未央 2020-12-30 10:07

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).
  Defa         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 11:04

    "-arch arm" is equivalent to "-arch armv4t" in clang. I suppose that a generic "arm" target is not allowed with "-march=", which should require something more precise, such as "armv6", "thumbv7", "armv4t", ...

    Try selecting a specific subarch.

提交回复
热议问题