mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[asan] Make the global_metadata_darwin.ll test require El Capitan or newer
llvm-svn: 264758
This commit is contained in:
parent
928c803594
commit
8dc6db89b3
@ -2,6 +2,7 @@
|
||||
; allowing dead stripping to be performed, and that the appropriate runtime
|
||||
; routines are invoked.
|
||||
|
||||
; REQUIRES: ld64_live_support
|
||||
; RUN: opt < %s -asan -asan-module -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
12
test/lit.cfg
12
test/lit.cfg
@ -429,6 +429,18 @@ def have_ld64_plugin_support():
|
||||
if have_ld64_plugin_support():
|
||||
config.available_features.add('ld64_plugin')
|
||||
|
||||
|
||||
# Check if ld64 knows about live_support (OS X El Capital and newer).
|
||||
if config.host_os == 'Darwin':
|
||||
try:
|
||||
osx_version = subprocess.check_output(["sw_vers", "-productVersion"])
|
||||
osx_version = tuple(int(x) for x in osx_version.split('.'))
|
||||
if osx_version >= (10, 11):
|
||||
config.available_features.add('ld64_live_support')
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
# Ask llvm-config about assertion mode.
|
||||
try:
|
||||
llvm_config_cmd = subprocess.Popen(
|
||||
|
Loading…
Reference in New Issue
Block a user