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")
361361  set (HOST_ARM64 1)
362362elseif (CMAKE_SYSTEM_PROCESSOR  MATCHES  "arm" )
363363  set (HOST_ARM 1)
364+   # fixme: use separate defines for host/target 
365+   set (NO_UNALIGNED_ACCESS 1)
364366elseif (CMAKE_SYSTEM_PROCESSOR  STREQUAL  "s390x" )
365367  set (HOST_S390X 1)
366368elseif (CMAKE_SYSTEM_PROCESSOR  STREQUAL  "wasm" )
@@ -413,6 +415,8 @@ elseif(TARGET_ARCH MATCHES "arm")
413415  add_definitions ("-DARM_FPU_VFP=1" )
414416  set (TARGET_SIZEOF_VOID_P 4)
415417  set (SIZEOF_REGISTER 4)
418+   # fixme: use separate defines for host/target 
419+   set (NO_UNALIGNED_ACCESS 1)
416420elseif (TARGET_ARCH STREQUAL  "s390x" )
417421  set (TARGET_S390X 1)
418422  set (MONO_ARCHITECTURE "\" s390x\" " )
Original file line number Diff line number Diff line change 911911/* size of target machine integer registers */ 
912912#define  SIZEOF_REGISTER  @SIZEOF_REGISTER@
913913
914+ /* host or target doesn't allow unaligned memory access */ 
915+ #cmakedefine  NO_UNALIGNED_ACCESS 1
916+ 
914917/* Support for the visibility ("hidden") attribute */ 
915918#cmakedefine  HAVE_VISIBILITY_HIDDEN 1
916919
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments