[K/N] Cross-compilation of MIPS targets from macOS and Windows hosts
Fixes KT-52226
This commit is contained in:
@@ -675,11 +675,20 @@ runtimeDefinitions.linux_arm64 = USE_GCC_UNWIND=1 KONAN_LINUX=1 KONAN_ARM64=1 \
|
||||
gccToolchain.linux_mips32 = $toolchainDependency.linux_mips32
|
||||
|
||||
targetToolchain.linux_x64-linux_mips32 = $gccToolchain.linux_mips32/mips-unknown-linux-gnu
|
||||
targetToolchain.mingw_x64-linux_mips32 = $llvmHome.mingw_x64
|
||||
targetToolchain.macos_x64-linux_mips32 = $llvmHome.macos_x64
|
||||
targetToolchain.macos_arm64-linux_mips32 = $llvmHome.macos_arm64
|
||||
|
||||
emulatorDependency.linux_x64-linux_mips32 = qemu-mips-static-5.1.0-linux-2
|
||||
emulatorExecutable.linux_x64-linux_mips32 = qemu-mips-static-5.1.0-linux-2/qemu-mips
|
||||
dependencies.linux_x64-linux_mips32 = \
|
||||
$toolchainDependency.linux_mips32
|
||||
dependencies.mingw_x64-linux_mips32 = \
|
||||
$toolchainDependency.linux_mips32
|
||||
dependencies.macos_x64-linux_mips32 = \
|
||||
$toolchainDependency.linux_mips32
|
||||
dependencies.macos_arm64-linux_mips32 = \
|
||||
$toolchainDependency.linux_mips32
|
||||
|
||||
targetTriple.linux_mips32 = mips-unknown-linux-gnu
|
||||
linkerOptimizationFlags.linux_mips32 = --gc-sections
|
||||
@@ -703,6 +712,9 @@ staticLibraryRelocationMode.linux_mips32 = pic
|
||||
executableRelocationMode.linux_mips32 = static
|
||||
|
||||
linker.linux_x64-linux_mips32 = $targetToolchain.linux_x64-linux_mips32/bin/ld
|
||||
linker.mingw_x64-linux_mips32 = $targetToolchain.mingw_x64-linux_mips32/bin/ld.lld
|
||||
linker.macos_x64-linux_mips32 = $targetToolchain.macos_x64-linux_mips32/bin/ld.lld
|
||||
linker.macos_arm64-linux_mips32 = $targetToolchain.macos_arm64-linux_mips32/bin/ld.lld
|
||||
linkerHostSpecificFlags.linux_x64-linux_mips32 =
|
||||
dynamicLinker.linux_mips32 = /lib/ld.so.1
|
||||
# targetSysRoot relative
|
||||
@@ -718,11 +730,20 @@ runtimeDefinitions.linux_mips32 = USE_GCC_UNWIND=1 KONAN_LINUX=1 KONAN_MIPS32=1
|
||||
gccToolchain.linux_mipsel32 = $toolchainDependency.linux_mipsel32
|
||||
|
||||
targetToolchain.linux_x64-linux_mipsel32 = $gccToolchain.linux_mipsel32/mipsel-unknown-linux-gnu
|
||||
targetToolchain.mingw_x64-linux_mipsel32 = $llvmHome.mingw_x64
|
||||
targetToolchain.macos_x64-linux_mipsel32 = $llvmHome.macos_x64
|
||||
targetToolchain.macos_arm64-linux_mipsel32 = $llvmHome.macos_arm64
|
||||
|
||||
emulatorDependency.linux_x64-linux_mipsel32 = qemu-mipsel-static-5.1.0-linux-2
|
||||
emulatorExecutable.linux_x64-linux_mipsel32 = qemu-mipsel-static-5.1.0-linux-2/qemu-mipsel
|
||||
dependencies.linux_x64-linux_mipsel32 = \
|
||||
$toolchainDependency.linux_mipsel32
|
||||
dependencies.mingw_x64-linux_mipsel32 = \
|
||||
$toolchainDependency.linux_mipsel32
|
||||
dependencies.macos_x64-linux_mipsel32 = \
|
||||
$toolchainDependency.linux_mipsel32
|
||||
dependencies.macos_arm64-linux_mipsel32 = \
|
||||
$toolchainDependency.linux_mipsel32
|
||||
|
||||
targetTriple.linux_mipsel32 = mipsel-unknown-linux-gnu
|
||||
linkerOptimizationFlags.linux_mipsel32 = --gc-sections
|
||||
@@ -743,6 +764,9 @@ dynamicLibraryRelocationMode.linux_mipsel32 = pic
|
||||
staticLibraryRelocationMode.linux_mipsel32 = pic
|
||||
|
||||
linker.linux_x64-linux_mipsel32 = $targetToolchain.linux_x64-linux_mipsel32/bin/ld
|
||||
linker.mingw_x64-linux_mipsel32 = $targetToolchain.mingw_x64-linux_mipsel32/bin/ld.lld
|
||||
linker.macos_x64-linux_mipsel32 = $targetToolchain.macos_x64-linux_mipsel32/bin/ld.lld
|
||||
linker.macos_arm64-linux_mipsel32 = $targetToolchain.macos_arm64-linux_mipsel32/bin/ld.lld
|
||||
linkerHostSpecificFlags.linux_x64-linux_mipsel32 =
|
||||
dynamicLinker.linux_mipsel32 = /lib/ld.so.1
|
||||
# targetSysRoot relative
|
||||
|
||||
Reference in New Issue
Block a user