From: Angus Gratton Date: Tue, 27 Feb 2018 05:03:32 +0000 (+1100) Subject: cmake: Fix SPIRAM options X-Git-Tag: v3.1-rc2~9^2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc1693aae3af2d7630a26d3d7a95e477f51b70b1;p=esp-idf cmake: Fix SPIRAM options --- diff --git a/components/esp32/CMakeLists.txt b/components/esp32/CMakeLists.txt index 31b6ce5461..77d4fd0b40 100644 --- a/components/esp32/CMakeLists.txt +++ b/components/esp32/CMakeLists.txt @@ -31,7 +31,7 @@ else() target_link_libraries(esp32 "-T esp32.peripherals.ld") if(CONFIG_SPIRAM_CACHE_WORKAROUND) - target_link_libraries(esp32 ${CMAKE_CURRENT_SOURCE_DIR}/libstdc++-psram-workaround.a) + add_compile_options(-mfix-esp32-psram-cache-issue) else() target_link_libraries(esp32 "-T esp32.rom.spiram_incompatible_fns.ld") endif()