[compiler-rt] r318469 - [asan] Add lit feature to indicate compiler_rt's shadow scale value

Walter Lee via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 15:28:25 PST 2017


Author: waltl
Date: Thu Nov 16 15:28:25 2017
New Revision: 318469

URL: http://llvm.org/viewvc/llvm-project?rev=318469&view=rev
Log:
[asan] Add lit feature to indicate compiler_rt's shadow scale value

This will be used to mark tests that require a specific shadow scale.

Differential Revision: https://reviews.llvm.org/D39772

Modified:
    compiler-rt/trunk/test/lit.common.cfg

Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=318469&r1=318468&r2=318469&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Thu Nov 16 15:28:25 2017
@@ -320,3 +320,8 @@ elif config.android:
 # because the test hangs or fails on one configuration and not the other.
 if config.android or (config.target_arch not in ['arm', 'armhf', 'aarch64']):
   config.available_features.add('stable-runtime')
+
+if config.asan_shadow_scale:
+  config.available_features.add("shadow-scale-%s" % config.asan_shadow_scale)
+else:
+  config.available_features.add("shadow-scale-3")




More information about the llvm-commits mailing list