forked from OSchip/llvm-project
parent
cdb64566cc
commit
83af95d927
|
@ -1,7 +1,7 @@
|
|||
# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t
|
||||
# RUN: lld -flavor gnu2 %t -o %t2
|
||||
# RUN: llvm-objdump -d %t2 | FileCheck %s
|
||||
# REQUIRES: arm64
|
||||
# REQUIRES: aarch64
|
||||
|
||||
.globl _start
|
||||
_start:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# RUN: lld -flavor gnu2 %t -o %t2
|
||||
# RUN: llvm-readobj -file-headers -sections -program-headers -symbols %t2 \
|
||||
# RUN: | FileCheck %s
|
||||
# REQUIRES: arm64
|
||||
# REQUIRES: aarch64
|
||||
|
||||
# exits with return code 42 on FreeBSD/AArch64
|
||||
.globl _start;
|
||||
|
|
|
@ -175,13 +175,17 @@ if re.search(r'DEBUG', llvm_config_output_list[0]):
|
|||
config.available_features.add('debug')
|
||||
if re.search(r'ON', llvm_config_output_list[1]):
|
||||
config.available_features.add('asserts')
|
||||
if re.search(r'ARM', llvm_config_output_list[2]):
|
||||
|
||||
archs = llvm_config_output_list[2]
|
||||
if re.search(r'AArch64', archs):
|
||||
config.available_features.add('aarch64')
|
||||
if re.search(r'ARM', archs):
|
||||
config.available_features.add('arm')
|
||||
if re.search(r'Mips', llvm_config_output_list[2]):
|
||||
if re.search(r'Mips', archs):
|
||||
config.available_features.add('mips')
|
||||
if re.search(r'X86', llvm_config_output_list[2]):
|
||||
if re.search(r'X86', archs):
|
||||
config.available_features.add('x86')
|
||||
if re.search(r'PowerPC', llvm_config_output_list[2]):
|
||||
if re.search(r'PowerPC', archs):
|
||||
config.available_features.add('ppc')
|
||||
llvm_config_cmd.wait()
|
||||
|
||||
|
|
Loading…
Reference in New Issue