mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-03 07:19:37 +00:00 
			
		
		
		
	build: consider x86_64 on aarch64 darwin to not be a cross-compile
This commit is contained in:
		@ -21,6 +21,14 @@ then
 | 
				
			|||||||
  TARGET_OS="${HOST_OS}"
 | 
					  TARGET_OS="${HOST_OS}"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Darwin can cross compile on all architectures to all other supported
 | 
				
			||||||
 | 
					# architectures without cross compilation consideration. For cross-compile
 | 
				
			||||||
 | 
					# check, make sure HOST_ARCH is TARGET_ARCH for comparison.
 | 
				
			||||||
 | 
					if [ "${TARGET_OS}" = "darwin" ]
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
					  HOST_ARCH="${TARGET_ARCH}"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "${HOST_ARCH}" != "${TARGET_ARCH}" ] || [ "${HOST_OS}" != "${TARGET_OS}" ]
 | 
					if [ "${HOST_ARCH}" != "${TARGET_ARCH}" ] || [ "${HOST_OS}" != "${TARGET_OS}" ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
  echo "1"
 | 
					  echo "1"
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user