Skip to content

Commit 28116ca

Browse files
committed
MDBF-348: innodb aix htm support
CMAKE_SYSTEM_PROCESSOR on AIX is "powerpc". To deconflict with the Linux 32bit arch of the same name, CMAKE_SYSTEM_NAME was used in the CMakeLists.txt test to enable -mhtm in the same way that was required for Linux ppc64{,le} compilers in MDEV-27936
1 parent 0a573e7 commit 28116ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/innobase/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ ENDIF()
387387
# s390x because of the way it defines the high level intrinsics
388388
# as not-inline in the header file can only be included by one
389389
# source file that has -mhtm enabled.
390-
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64|powerpc64|s390x")
390+
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64|powerpc64|s390x"
391+
OR CMAKE_SYSTEM_NAME MATCHES "AIX")
391392
ADD_COMPILE_FLAGS(
392393
sync/srw_lock.cc
393394
COMPILE_FLAGS "-mhtm"

0 commit comments

Comments
 (0)