llvm/llvm/test/tools/llvm-driver/lit.local.cfg

from lit.llvm import llvm_config

if llvm_config.use_lld(required=False):
    config.available_features.add("lld")