From 053f419cedb5d0d7e0990fc3d717127e898ce8e3 Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Sun, 18 Aug 2019 14:37:35 +0800 Subject: [PATCH] stdatomic: support gcc built-in functions for esp32s2beta --- components/xtensa/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/xtensa/CMakeLists.txt b/components/xtensa/CMakeLists.txt index ce33679c27..5c335ffddc 100644 --- a/components/xtensa/CMakeLists.txt +++ b/components/xtensa/CMakeLists.txt @@ -6,9 +6,12 @@ else() set(srcs "debug_helpers.c" "debug_helpers_asm.S" "eri.c" - "stdatomic.c") + ) - if(CONFIG_IDF_TARGET_ESP32) + if(IDF_TARGET STREQUAL "esp32s2beta") + list(APPEND srcs "stdatomic.c") + endif() + if(IDF_TARGET STREQUAL "esp32") list(APPEND srcs "trax.c") endif() endif()