# Ask llvm-config about asserts
llvm_config.feature_config(
- [('--assertion-mode', {'ON': 'asserts'})])
+ [('--assertion-mode', {'ON': 'asserts'}),
+ ('--build-mode', {'[Dd][Ee][Bb][Uu][Gg]': 'debug'})])
if 'darwin' == sys.platform:
cmd = ['sysctl', 'hw.optional.fma']
if config.have_opt_viewer_modules:
config.available_features.add('have_opt_viewer_modules')
+
+if config.expensive_checks:
+ config.available_features.add('expensive_checks')
config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@
config.have_tf_aot = @LLVM_HAVE_TF_AOT@
config.have_tf_api = @LLVM_HAVE_TF_API@
+config.expensive_checks = @LLVM_ENABLE_EXPENSIVE_CHECKS@
# Support substitution of the tools_dir with user parameters. This is
# used when we can't determine the tool dir at configuration time.