Skip to content

Commit fd27aab

Browse files
author
Krzysztof Parzyszek
authored
[Hexagon] Disable thread_local on Hexagon (#9025)
This is specific to running code on hardware: libc++abi can create TLS keys with destructors in the libc++abi library. Despite that, the library gets unloaded before the keys are destroyed, leading to a crash. Turning off the use of `thread_local` is a workaround for this.
1 parent a579cea commit fd27aab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ if(BUILD_FOR_HEXAGON)
310310
endif()
311311

312312
add_definitions(-D_MACH_I32=int)
313+
add_definitions(-DDMLC_CXX11_THREAD_LOCAL=0)
313314
endif()
314315

315316
# Package runtime rules

0 commit comments

Comments
 (0)