fix(cxx): fix TLS classes destructor call

Closes https://github.com/espressif/esp-idf/issues/14360
This commit is contained in:
Alexey Lapshin
2024-08-23 16:57:42 +07:00
parent e3a508cded
commit b8ab882ab2
3 changed files with 43 additions and 3 deletions
+3 -1
View File
@@ -248,7 +248,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "GNU")
endif()
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
list(APPEND compile_options "-fno-use-cxa-atexit")
list(APPEND compile_options "-fno-use-cxa-atexit") # TODO IDF-10934
else()
list(APPEND cxx_compile_options "-fuse-cxa-atexit")
endif()
# For the transition period from 32-bit time_t to 64-bit time_t,