mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
9b988ca097
Allows building with asserts on and still not finding any actual file paths in the final binary file. Alternative fix for https://github.com/espressif/esp-idf/issues/6306 Progress towards https://github.com/espressif/esp-idf/issues/5873 |
||
---|---|---|
.. | ||
main | ||
check_for_file_paths.py | ||
CMakeLists.txt | ||
README.md | ||
sdkconfig.ci.noasserts | ||
sdkconfig.ci.noasserts.nimble | ||
sdkconfig.ci.replacepaths | ||
sdkconfig.ci.silentasserts | ||
sdkconfig.ci.silentasserts.nimble |
No Embedded Paths
This test app exists to verify that paths (like FILE) are not compiled into any object files in configurations where this should be avoided.
Configurations where this is relevant include:
- Assertions disabled (doubles up as a build-time check that disabling assertions doesn't lead to any warnings)
- Silent assertions
- CONFIG_COMPILER_HIDE_PATHS_MACROS is set to replace IDF_PATH and project dir with placeholders when expanding
__FILE__
Not embedding paths reduces the binary size, avoids leaking information about the compilation environment, and is a necessary step to support reproducible builds across projects built in different directories.