File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
361
361
set (HOST_ARM64 1 )
362
362
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "arm" )
363
363
set (HOST_ARM 1 )
364
+ # fixme: use separate defines for host/target
365
+ set (NO_UNALIGNED_ACCESS 1 )
364
366
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "s390x" )
365
367
set (HOST_S390X 1 )
366
368
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "wasm" )
@@ -413,6 +415,8 @@ elseif(TARGET_ARCH MATCHES "arm")
413
415
add_definitions ("-DARM_FPU_VFP=1" )
414
416
set (TARGET_SIZEOF_VOID_P 4 )
415
417
set (SIZEOF_REGISTER 4 )
418
+ # fixme: use separate defines for host/target
419
+ set (NO_UNALIGNED_ACCESS 1 )
416
420
elseif (TARGET_ARCH STREQUAL "s390x" )
417
421
set (TARGET_S390X 1 )
418
422
set (MONO_ARCHITECTURE "\" s390x\" " )
Original file line number Diff line number Diff line change 911
911
/* size of target machine integer registers */
912
912
#define SIZEOF_REGISTER @SIZEOF_REGISTER@
913
913
914
+ /* host or target doesn't allow unaligned memory access */
915
+ #cmakedefine NO_UNALIGNED_ACCESS 1
916
+
914
917
/* Support for the visibility ("hidden") attribute */
915
918
#cmakedefine HAVE_VISIBILITY_HIDDEN 1
916
919
You can’t perform that action at this time.
0 commit comments