[llvm] r264758 - [asan] Make the global_metadata_darwin.ll test require El Capitan or newer
Ryan Govostes via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 29 10:58:50 PDT 2016
Author: rgov
Date: Tue Mar 29 12:58:49 2016
New Revision: 264758
URL: http://llvm.org/viewvc/llvm-project?rev=264758&view=rev
Log:
[asan] Make the global_metadata_darwin.ll test require El Capitan or newer
Modified:
llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll?rev=264758&r1=264757&r2=264758&view=diff
==============================================================================
--- llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll (original)
+++ llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll Tue Mar 29 12:58:49 2016
@@ -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"
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=264758&r1=264757&r2=264758&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Tue Mar 29 12:58:49 2016
@@ -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(
More information about the llvm-commits
mailing list