From 4c4cf35c0337da75c75f400132b8712a7dfe8e5f Mon Sep 17 00:00:00 2001 From: Walter Lee Date: Thu, 16 Nov 2017 23:28:25 +0000 Subject: [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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@318469 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.common.cfg | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/lit.common.cfg b/test/lit.common.cfg index 4b33bb033..48987dfda 100644 --- a/test/lit.common.cfg +++ b/test/lit.common.cfg @@ -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") -- cgit v1.2.3