Do not add linux target on aarch64 architectures (#25)
It would fail as there is no kotlin-native toolchain yet and prevent us from building JVM targets.
This commit is contained in:
		
							parent
							
								
									3389035dbf
								
							
						
					
					
						commit
						75247e4de2
					
				@ -88,7 +88,11 @@ kotlin {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    val currentOs = org.gradle.internal.os.OperatingSystem.current()
 | 
			
		||||
    if (currentOs.isLinux) {
 | 
			
		||||
    val arch = System.getProperty("os.arch")
 | 
			
		||||
 | 
			
		||||
    if (currentOs.isLinux && arch != "aarch64") {
 | 
			
		||||
        // there is no kotlin native toolchain for linux arm64 yet, but we can still build for the JVM
 | 
			
		||||
        // see https://youtrack.jetbrains.com/issue/KT-51794/Cant-run-JVM-targets-on-ARM-Linux-when-using-Kotlin-Multiplatform-plugin
 | 
			
		||||
        linuxX64 {
 | 
			
		||||
            phoenixBinaries()
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user