aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler
diff options
context:
space:
mode:
authordaMaex <damaex@live.de>2020-03-01 20:16:57 +0100
committerGitHub <noreply@github.com>2020-03-01 20:16:57 +0100
commitce449f6b5332ab466d935de0077bccfdde716d1b (patch)
treeb76ad1e81aab8079a6a94116c2771e61143abecc /cmake/compiler
parent6067a996324dc4e36a414257e6abf7f9dfdfa934 (diff)
Core: build on aarch64 with gcc (#24216)
* build on aarch64 with gcc * Core/aarch64: readability on preprocessor macro * Core/aarch64: TC C++ codestyle adjustment
Diffstat (limited to 'cmake/compiler')
-rw-r--r--cmake/compiler/gcc/settings.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index c0d806c3d64..c2fbfee0345 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -16,11 +16,13 @@ if(PLATFORM EQUAL 32)
-msse2
-mfpmath=sse)
endif()
-target_compile_definitions(trinity-compile-option-interface
- INTERFACE
- -DHAVE_SSE2
- -D__SSE2__)
-message(STATUS "GCC: SFMT enabled, SSE2 flags forced")
+if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
+ target_compile_definitions(trinity-compile-option-interface
+ INTERFACE
+ -DHAVE_SSE2
+ -D__SSE2__)
+ message(STATUS "GCC: SFMT enabled, SSE2 flags forced")
+endif()
if( WITH_WARNINGS )
target_compile_options(trinity-warning-interface