Skip to content

Commit 1c0180e

Browse files
author
Cameron McInally
committed
[MC] Update '-mcpu=native' test to be Linux only.
llvm::sys::getHostCPUName() and llvm::sys::getHostCPUFeatures() appear to need special cases for _WIN32 on X86 (similar to the existing _WIN32 on ARM special cases) to restrict what CPUs and Features are available with that OS. For now, limit this test to Linux systems only, as this test does not check very much being that it is sensitve to the Host machine. Originally llvm#159414.
1 parent 2d503b9 commit 1c0180e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/test/MC/AsmParser/native.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# REQUIRES: system-linux
12
# RUN: llvm-mc -filetype=obj -o %t -mcpu=native %s 2> %t.stderr
23
# RUN: FileCheck --allow-empty %s < %t.stderr
34

0 commit comments

Comments
 (0)