]> granicus.if.org Git - clang/commitdiff
[XRay] Only run shared tests when 'enable_shared' is true
authorDean Michael Berris <dberris@google.com>
Tue, 26 Sep 2017 04:07:45 +0000 (04:07 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 26 Sep 2017 04:07:45 +0000 (04:07 +0000)
Follow-up to D38226.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314191 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/XRay/lit.local.cfg
test/Driver/XRay/xray-shared-noxray.cpp

index 85e1ee733f9d983c689934268cc3b52b484756e3..7cc6c70dcb2229e5a6a428990a3dd3af479e3724 100644 (file)
@@ -19,3 +19,6 @@ if len(triple_set.intersection(supported_targets)) == 0:
 # Do not run for 'android' despite being linux.
 if len(triple_set.intersection(supported_oses)) == 0 or 'android' in triple_set:
   config.unsupported = True
+
+if config.enable_shared:
+  config.available_features.update(['enable_shared'])
index e6dd7e6292af509333413e9b894d9b1624efd1ba..19e526a7d80a04f1f63a60c68d27d1d538d5c090 100644 (file)
@@ -6,7 +6,7 @@
 // SHARED-NOT: {{clang_rt\.xray-}}
 // STATIC: {{clang_rt\.xray-}}
 //
-// REQUIRES: linux
+// REQUIRES: linux, enable_shared
 int foo() { return 42; }
 
 #ifdef MAIN