18 lines
629 B
INI
18 lines
629 B
INI
import sys
|
|
from lit.llvm import llvm_config
|
|
|
|
# FIXME: %mlir_native_utils_lib_dir is set incorrectly on Windows
|
|
if sys.platform == "win32":
|
|
config.unsupported = True
|
|
|
|
# ArmSVE tests must be enabled via build flag.
|
|
if config.mlir_run_arm_sve_tests:
|
|
config.substitutions.append(("%ENABLE_VLA", "true"))
|
|
config.substitutions.append(
|
|
("%VLA_ARCH_ATTR_OPTIONS", '--march=aarch64 --mattr="+sve"')
|
|
)
|
|
else:
|
|
config.substitutions.append(("%ENABLE_VLA", "false"))
|
|
config.substitutions.append(("%VLA_ARCH_ATTR_OPTIONS", ""))
|
|
config.substitutions.append(("%mlir_native_utils_lib_dir", config.mlir_lib_dir))
|