Logo
Explore Help
Sign In
espressif/esp-idf
1
0
Fork 1
You've already forked esp-idf
mirror of https://github.com/espressif/esp-idf.git synced 2025-11-24 03:09:41 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
2a12872d0af6e3bb32b51b4916887b51afd4a78d
esp-idf/tools/test_apps/system/startup/sdkconfig.ci.no_asserts

3 lines
91 B
Plaintext
Raw Normal View History

feat(newlib): add option to disable eval of expression in assert() when NDEBUG set According to the standard assert(X) should be replaced by a void expression when NDEBUG is set. IDF's behavior was to not trigger an assertion, but we would still evaluate X, e.g. if X was a function it would be ran. This MR adds a kconfig option CONFIG_COMPILER_ASSERT_NDEBUG_EVALUATE which allows us revert the behavior to be inline with the standard. With IDF v6.0 the plan is to make CONFIG_COMPILER_ASSERT_NDEBUG_EVALUATE=n the default behavior. Closes https://github.com/espressif/esp-idf/issues/10136 Closes https://github.com/espressif/esp-idf/issues/2758
2024-08-15 16:40:19 +08:00
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y
CONFIG_COMPILER_ASSERT_NDEBUG_EVALUATE=n
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 176ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API