Index: compiler-rt/test/lit.common.cfg =================================================================== --- compiler-rt/test/lit.common.cfg +++ compiler-rt/test/lit.common.cfg @@ -327,3 +327,7 @@ # 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') + +# Detect custom shadow scale. +if config.asan_shadow_scale != '' and config.asan_shadow_scale != '3': + config.available_features.add("custom-shadow-scale")