We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f5659 commit a7cd535Copy full SHA for a7cd535
cmake/deps/customlabels.cmake
@@ -5,6 +5,21 @@ FetchContent_Declare(customlabels
5
GIT_TAG elsa/add-process-storage
6
)
7
8
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
9
+ set(TLS_DIALECT desc)
10
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64")
11
+ set(TLS_DIALECT gnu2)
12
+else()
13
+ message(FATAL_ERROR "Only aarch64 and x86-64 are supported (found: ${CMAKE_SYSTEM_PROCESSOR})")
14
+endif()
15
+
16
+target_compile_options(dd_trace_cpp-shared PRIVATE
17
+ -g
18
+ -fPIC
19
+ -ftls-model=global-dynamic
20
+ -mtls-dialect=${TLS_DIALECT}
21
+)
22
23
FetchContent_MakeAvailable(customlabels)
24
25
add_library(customlabels SHARED
0 commit comments