summaryrefslogtreecommitdiffstats
path: root/modules/mbedtls/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mbedtls/SCsub')
-rw-r--r--modules/mbedtls/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mbedtls/SCsub b/modules/mbedtls/SCsub
index 7c1204d2b7..4b8f65d8ff 100644
--- a/modules/mbedtls/SCsub
+++ b/modules/mbedtls/SCsub
@@ -121,6 +121,9 @@ if env["tests"]:
env_mbed_tls.Append(CPPDEFINES=["TESTS_ENABLED"])
env_mbed_tls.add_source_files(module_obj, "./tests/*.cpp")
+ if env["disable_exceptions"]:
+ env_mbed_tls.Append(CPPDEFINES=["DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS"])
+
env.modules_sources += module_obj
# Needed to force rebuilding the module files when the thirdparty library is updated.