]> granicus.if.org Git - esp-idf/commitdiff
cmake: Fix SPIRAM options
authorAngus Gratton <angus@espressif.com>
Tue, 27 Feb 2018 05:03:32 +0000 (16:03 +1100)
committerAngus Gratton <gus@projectgus.com>
Sun, 29 Apr 2018 23:59:20 +0000 (09:59 +1000)
components/esp32/CMakeLists.txt

index 31b6ce54611fe7e806fe9eced220d91b970dcb48..77d4fd0b4004f8e287b380433a40eb446bed2601 100644 (file)
@@ -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()