mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-28 16:46:31 +03:00
stdio_vfs.c (the sole definition of esp_vfs_include_console_register) is only added to the source list on non-Linux targets. The trailing target_link_libraries(... -u esp_vfs_include_console_register) was applied whenever CONFIG_VFS_SUPPORT_IO was enabled, including on the Linux host build where the symbol is not part of the link. Constrain the force-undef to the same condition that opts the defining source in.