forked from espressif/esp-idf
cmake: Fix psram workaround compiler flag application
Previously, this compiler flag was not being applied regardless of CONFIG_SPIRAM_CACHE_WORKAROUND setting. Explanation: add_compile_options() only applies to source files added after the function is run, or in subdirectories added after the function is run. In this case, no new source files were being added after this function was run.
This commit is contained in:
@@ -614,6 +614,7 @@ $(COMPONENT_LIBRARY) for the project make process to link into the app binary.
|
||||
(Actually, even this is not strictly necessary - if the COMPONENT_ADD_LDFLAGS variable
|
||||
is overridden then the component can instruct the linker to link other binaries instead.)
|
||||
|
||||
.. note:: When using an external build process with PSRAM, remember to add ``-mfix-esp32-psram-cache-issue`` to the C compiler arguments. See :ref:`CONFIG_SPIRAM_CACHE_WORKAROUND` for details of this flag.
|
||||
|
||||
.. _esp-idf-template: https://github.com/espressif/esp-idf-template
|
||||
.. _GNU Make Manual: https://www.gnu.org/software/make/manual/make.html
|
||||
|
Reference in New Issue
Block a user