File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed
sdk/include/opentelemetry/sdk/resource Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ else()
6060 elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
6161 set (ARCH x86)
6262 endif ()
63+ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc" )
64+ # AIX will report the processor as 'powerpc' even if building in 64-bit mode
65+ if (CMAKE_SIZEOF_VOID_P EQUAL 8)
66+ set (ARCH ppc64)
67+ else ()
68+ set (ARCH ppc32)
69+ endif ()
6370 elseif (CMAKE_SYSTEM_PROCESSOR MATCHES
6471 "^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)" )
6572 set (ARCH arm64)
Original file line number Diff line number Diff line change @@ -348,7 +348,8 @@ if(WITH_OTLP_GRPC)
348348 target_link_libraries (opentelemetry_proto_grpc PUBLIC opentelemetry_proto)
349349
350350 get_target_property (grpc_lib_type gRPC::grpc++ TYPE )
351- if (grpc_lib_type STREQUAL "SHARED_LIBRARY" )
351+ get_target_property (opentelemetry_proto_grpc_lib_type opentelemetry_proto_grpc TYPE )
352+ if ((grpc_lib_type STREQUAL "SHARED_LIBRARY" ) OR (opentelemetry_proto_grpc_lib_type STREQUAL "SHARED_LIBRARY" ))
352353 target_link_libraries (opentelemetry_proto_grpc PUBLIC gRPC::grpc++)
353354 endif ()
354355 set_target_properties (opentelemetry_proto_grpc PROPERTIES EXPORT_NAME
Original file line number Diff line number Diff line change @@ -160,6 +160,10 @@ function(project_build_tools_patch_default_imported_config)
160160 if (IS_ALIAS_TARGET)
161161 continue ()
162162 endif ()
163+ get_target_property (IS_ALIASED_TARGET ${TARGET_NAME} ALIASED_TARGET)
164+ if (IS_ALIASED_TARGET)
165+ continue ()
166+ endif ()
163167
164168 if (CMAKE_VERSION VERSION_LESS "3.19.0" )
165169 get_target_property (TARGET_TYPE_NAME ${TARGET_NAME} TYPE )
Original file line number Diff line number Diff line change 1313#include " opentelemetry/common/macros.h"
1414#include " opentelemetry/version.h"
1515
16+ /*
17+ * Special considerations for HostArchValues
18+ *
19+ * The sys/systemcfg.h header on AIX is known to define an IA64 macro,
20+ * which collides with HostArchValues::IA64.
21+ */
22+ #ifdef _AIX
23+ # ifdef IA64
24+ # pragma message "Removing define on IA64"
25+ # undef IA64
26+ # endif
27+ #endif
28+
1629OPENTELEMETRY_BEGIN_NAMESPACE
1730namespace sdk
1831{
You can’t perform that action at this time.
0 commit comments