Introduce a proper TargetTriple class.
Target triple (like `arm64-apple-ios-simulator`) is a common way to represent any target platform. One of many useful properties: it allows to explicitly distinguish iOS arm64 simulator target and a real device.
This commit is contained in:
committed by
TeamCityServer
parent
19116e5623
commit
cebf815fed
@@ -95,7 +95,7 @@ additionalToolsDir.macos_x64 = xcode-addon-xcode_12_2-macos_x64
|
||||
|
||||
targetToolchain.macos_arm64-macos_x64 = target-toolchain-xcode_12_2-macos_x64
|
||||
|
||||
arch.macos_x64 = x86_64
|
||||
targetTriple.macos_x64 = x86_64-apple-macos
|
||||
targetSysRoot.macos_x64 = target-sysroot-xcode_12_2-macos_x64
|
||||
targetCpu.macos_x64 = core2
|
||||
clangFlags.macos_x64 = -cc1 -emit-obj -disable-llvm-passes -x ir
|
||||
@@ -133,7 +133,7 @@ libffiDir.macos_arm64 = libffi-3.3-1-macos-arm64
|
||||
additionalToolsDir.macos_arm64 = xcode-addon-xcode_12_2-macos_x64
|
||||
|
||||
targetToolchain.macos_x64-macos_arm64 = target-toolchain-xcode_12_2-macos_x64
|
||||
arch.macos_arm64 = arm64
|
||||
targetTriple.macos_arm64 = arm64-apple-macos
|
||||
targetSysRoot.macos_arm64 = target-sysroot-xcode_12_2-macos_x64
|
||||
# TODO: Check Clang behaviour.
|
||||
targetCpu.macos_arm64 = cyclone
|
||||
@@ -173,7 +173,7 @@ targetToolchain.macos_arm64-ios_arm32 = target-toolchain-xcode_12_2-macos_x64
|
||||
target-sysroot-xcode_12_2-ios_arm32.default = \
|
||||
remote:internal
|
||||
|
||||
arch.ios_arm32 = armv7
|
||||
targetTriple.ios_arm32 = armv7-apple-ios
|
||||
# Shared with 64-bit version.
|
||||
targetSysRoot.ios_arm32 = target-sysroot-xcode_12_2-ios_arm64
|
||||
targetCpu.ios_arm32 = generic
|
||||
@@ -205,7 +205,7 @@ targetToolchain.macos_arm64-ios_arm64 = target-toolchain-xcode_12_2-macos_x64
|
||||
target-sysroot-xcode_12_2-ios_arm64.default = \
|
||||
remote:internal
|
||||
|
||||
arch.ios_arm64 = arm64
|
||||
targetTriple.ios_arm64 = arm64-apple-ios
|
||||
targetSysRoot.ios_arm64 = target-sysroot-xcode_12_2-ios_arm64
|
||||
targetCpu.ios_arm64 = cyclone
|
||||
clangFlags.ios_arm64 = -cc1 -emit-obj -disable-llvm-passes -x ir
|
||||
@@ -235,7 +235,7 @@ targetToolchain.macos_arm64-ios_x64 = target-toolchain-xcode_12_2-macos_x64
|
||||
target-sysroot-xcode_12_2-ios_x64.default = \
|
||||
remote:internal
|
||||
|
||||
arch.ios_x64 = x86_64
|
||||
targetTriple.ios_x64 = x86_64-apple-ios-simulator
|
||||
targetSysRoot.ios_x64 = target-sysroot-xcode_12_2-ios_x64
|
||||
targetCpu.ios_x64 = core2
|
||||
clangFlags.ios_x64 = -cc1 -emit-obj -disable-llvm-passes -x ir
|
||||
@@ -261,7 +261,7 @@ targetToolchain.macos_arm64-tvos_x64 = target-toolchain-xcode_12_2-macos_x64
|
||||
target-sysroot-xcode_12_2-tvos_x64.default = \
|
||||
remote:internal
|
||||
|
||||
arch.tvos_x64 = x86_64
|
||||
targetTriple.tvos_x64 = x86_64-apple-tvos-simulator
|
||||
targetSysRoot.tvos_x64 = target-sysroot-xcode_12_2-tvos_x64
|
||||
targetCpu.tvos_x64 = core2
|
||||
clangFlags.tvos_x64 = -cc1 -emit-obj -disable-llvm-passes -x ir -target-cpu $targetCpu.tvos_x64
|
||||
@@ -287,7 +287,7 @@ targetToolchain.macos_arm64-tvos_arm64 = target-toolchain-xcode_12_2-macos_x64
|
||||
target-sysroot-xcode_12_2-tvos_arm64.default = \
|
||||
remote:internal
|
||||
|
||||
arch.tvos_arm64 = arm64
|
||||
targetTriple.tvos_arm64 = arm64-apple-tvos
|
||||
targetSysRoot.tvos_arm64 = target-sysroot-xcode_12_2-tvos_arm64
|
||||
targetCpu.tvos_arm64 = cyclone
|
||||
clangFlags.tvos_arm64 = -cc1 -emit-obj -disable-llvm-passes -x ir
|
||||
@@ -313,7 +313,7 @@ targetToolchain.macos_arm64-watchos_arm32 = target-toolchain-xcode_12_2-macos_x6
|
||||
target-sysroot-xcode_12_2-watchos_arm32.default = \
|
||||
remote:internal
|
||||
|
||||
arch.watchos_arm32 = armv7k
|
||||
targetTriple.watchos_arm32 = armv7k-apple-watchos
|
||||
targetSysRoot.watchos_arm32 = target-sysroot-xcode_12_2-watchos_arm32
|
||||
targetCpu.watchos_arm32 = cortex-a7
|
||||
clangFlags.watchos_arm32 = -cc1 -emit-obj -disable-llvm-passes -x ir
|
||||
@@ -341,7 +341,7 @@ targetToolchain.macos_arm64-watchos_arm64 = target-toolchain-xcode_12_2-macos_x6
|
||||
target-sysroot-xcode_12_2-watchos_arm64.default = \
|
||||
remote:internal
|
||||
|
||||
arch.watchos_arm64 = arm64_32
|
||||
targetTriple.watchos_arm64 = arm64_32-apple-watchos
|
||||
targetSysRoot.watchos_arm64 = target-sysroot-xcode_12_2-watchos_arm32
|
||||
targetCpu.watchos_arm64 = cortex-a7
|
||||
clangFlags.watchos_arm64 = -cc1 -emit-obj -disable-llvm-passes -x ir -mllvm -aarch64-watch-bitcode-compatibility \
|
||||
@@ -370,7 +370,7 @@ targetToolchain.macos_arm64-watchos_x86 = target-toolchain-xcode_12_2-macos_x64
|
||||
target-sysroot-xcode_12_2-watchos_x86.default = \
|
||||
remote:internal
|
||||
|
||||
arch.watchos_x86 = i386
|
||||
targetTriple.watchos_x86 = i386-apple-watchos-simulator
|
||||
targetSysRoot.watchos_x86 = target-sysroot-xcode_12_2-watchos_x86
|
||||
# -target-cpu pentium4 makes sure that code-generator knows which CPU flavour to emit code for.
|
||||
# Can be seen on optimized build and FP tests, where value is passed on stack
|
||||
@@ -400,7 +400,7 @@ targetToolchain.macos_arm64-watchos_x64 = target-toolchain-xcode_12_2-macos_x64
|
||||
target-sysroot-xcode_12_2-watchos_x64.default = \
|
||||
remote:internal
|
||||
|
||||
arch.watchos_x64 = x86_64
|
||||
targetTriple.watchos_x64 = x86_64-apple-watchos-simulator
|
||||
targetSysRoot.watchos_x64 = target-sysroot-xcode_12_2-watchos_x86
|
||||
targetCpu.watchos_x64 = core2
|
||||
clangFlags.watchos_x64 = -cc1 -emit-obj -disable-llvm-passes -x ir -target-cpu $targetCpu.watchos_x64
|
||||
@@ -441,7 +441,7 @@ targetToolchain.macos_arm64-linux_x64 = $llvmHome.macos_arm64
|
||||
dependencies.macos_arm64-linux_x64 = \
|
||||
x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2
|
||||
|
||||
quadruple.linux_x64 = x86_64-unknown-linux-gnu
|
||||
targetTriple.linux_x64 = x86_64-unknown-linux-gnu
|
||||
targetSysRoot.linux_x64 = $gccToolchain.linux_x64/x86_64-unknown-linux-gnu/sysroot
|
||||
# targetSysroot-relative.
|
||||
libGcc.linux_x64 = ../../lib/gcc/x86_64-unknown-linux-gnu/8.3.0
|
||||
@@ -496,7 +496,7 @@ dependencies.macos_x64-linux_arm32_hfp = \
|
||||
dependencies.macos_arm64-linux_arm32_hfp = \
|
||||
arm-unknown-linux-gnueabihf-gcc-8.3.0-glibc-2.19-kernel-4.9-2
|
||||
|
||||
quadruple.linux_arm32_hfp = arm-unknown-linux-gnueabihf
|
||||
targetTriple.linux_arm32_hfp = arm-unknown-linux-gnueabihf
|
||||
linkerNoDebugFlags.linux_arm32_hfp = -S
|
||||
linkerDynamicFlags.linux_arm32_hfp = -shared
|
||||
linkerOptimizationFlags.linux_arm32_hfp = --gc-sections
|
||||
@@ -551,7 +551,7 @@ dependencies.macos_x64-linux_arm64 = \
|
||||
dependencies.macos_arm64-linux_arm64 = \
|
||||
aarch64-unknown-linux-gnu-gcc-8.3.0-glibc-2.25-kernel-4.9-2
|
||||
|
||||
quadruple.linux_arm64 = aarch64-unknown-linux-gnu
|
||||
targetTriple.linux_arm64 = aarch64-unknown-linux-gnu
|
||||
linkerNoDebugFlags.linux_arm64 = -S
|
||||
linkerDynamicFlags.linux_arm64 = -shared
|
||||
linkerOptimizationFlags.linux_arm64 = --gc-sections
|
||||
@@ -595,7 +595,7 @@ emulatorExecutable.linux_x64-linux_mips32 = qemu-mips-static-5.1.0-linux-2/qemu-
|
||||
dependencies.linux_x64-linux_mips32 = \
|
||||
mips-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2
|
||||
|
||||
quadruple.linux_mips32 = mips-unknown-linux-gnu
|
||||
targetTriple.linux_mips32 = mips-unknown-linux-gnu
|
||||
linkerOptimizationFlags.linux_mips32 = --gc-sections
|
||||
linkerDynamicFlags.linux_mips32 = -shared
|
||||
targetSysRoot.linux_mips32 = $gccToolchain.linux_mips32/mips-unknown-linux-gnu/sysroot
|
||||
@@ -636,7 +636,7 @@ emulatorExecutable.linux_x64-linux_mipsel32 = qemu-mipsel-static-5.1.0-linux-2/q
|
||||
dependencies.linux_x64-linux_mipsel32 = \
|
||||
mipsel-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2
|
||||
|
||||
quadruple.linux_mipsel32 = mipsel-unknown-linux-gnu
|
||||
targetTriple.linux_mipsel32 = mipsel-unknown-linux-gnu
|
||||
linkerOptimizationFlags.linux_mipsel32 = --gc-sections
|
||||
linkerDynamicFlags.linux_mipsel32 = -shared
|
||||
targetSysRoot.linux_mipsel32 = $gccToolchain.linux_mipsel32/mipsel-unknown-linux-gnu/sysroot
|
||||
@@ -682,7 +682,7 @@ dependencies.mingw_x64-android_arm32 = \
|
||||
target-sysroot-1-android_ndk \
|
||||
target-toolchain-2-windows-android_ndk
|
||||
|
||||
quadruple.android_arm32 = arm-linux-androideabi
|
||||
targetTriple.android_arm32 = arm-unknown-linux-androideabi
|
||||
targetCpu.android_arm32 = arm7tdmi
|
||||
targetCpuFeatures.android_arm32 = +soft-float,+strict-align,-crypto,-neon,-thumb-mode
|
||||
clangFlags.android_arm32 = -cc1 -target-cpu $targetCpu.android_arm32 -emit-obj -disable-llvm-optzns -x ir -femulated-tls -mrelocation-model pic
|
||||
@@ -712,7 +712,7 @@ dependencies.mingw_x64-android_arm64 = \
|
||||
target-sysroot-1-android_ndk \
|
||||
target-toolchain-2-windows-android_ndk
|
||||
|
||||
quadruple.android_arm64 = aarch64-linux-android
|
||||
targetTriple.android_arm64 = aarch64-unknown-linux-android
|
||||
targetCpu.android_arm64 = cortex-a57
|
||||
clangFlags.android_arm64 = -cc1 -target-cpu $targetCpu.android_arm64 -emit-obj -disable-llvm-passes -x ir -femulated-tls -mrelocation-model pic
|
||||
clangOptFlags.android_arm64 = -O3 -ffunction-sections
|
||||
@@ -741,7 +741,7 @@ dependencies.mingw_x64-android_x86 = \
|
||||
target-sysroot-1-android_ndk \
|
||||
target-toolchain-2-windows-android_ndk
|
||||
|
||||
quadruple.android_x86 = i686-linux-android
|
||||
targetTriple.android_x86 = i686-unknown-linux-android
|
||||
# -target-cpu pentium4 makes sure that cogenerator knows which CPU flavour to emit code for.
|
||||
# Can be seen on optimized build and FP tests, where value is passed on stack
|
||||
# by Kotlin and taken from SSE registers by C code.
|
||||
@@ -774,7 +774,7 @@ dependencies.mingw_x64-android_x64 = \
|
||||
target-sysroot-1-android_ndk \
|
||||
target-toolchain-2-windows-android_ndk
|
||||
|
||||
quadruple.android_x64 = x86_64-linux-android
|
||||
targetTriple.android_x64 = x86_64-unknown-linux-android
|
||||
targetCpu.android_x64 = x86-64
|
||||
clangFlags.android_x64 = -cc1 -target-cpu $targetCpu.android_x64 -emit-obj -disable-llvm-passes -x ir -femulated-tls -mrelocation-model pic
|
||||
clangOptFlags.android_x64 = -O3 -ffunction-sections
|
||||
@@ -796,7 +796,7 @@ targetToolchain.macos_x64-mingw_x64 = msys2-mingw-w64-x86_64-clang-llvm-lld-comp
|
||||
dependencies.mingw_x64 = \
|
||||
lldb-2-windows
|
||||
|
||||
quadruple.mingw_x64 = x86_64-w64-mingw32
|
||||
targetTriple.mingw_x64 = x86_64-pc-windows-gnu
|
||||
targetSysRoot.mingw_x64 = msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1
|
||||
targetCpu.mingw_x64 = x86-64
|
||||
# For using with Universal Windows Platform (UWP) we need to use this slower option.
|
||||
@@ -827,7 +827,7 @@ dependencies.linux_x64-mingw_x86 = \
|
||||
dependencies.macos_x64-mingw_x86 = \
|
||||
msys2-mingw-w64-i686-clang-llvm-lld-compiler_rt-8.0.1
|
||||
|
||||
quadruple.mingw_x86 = i686-w64-mingw32
|
||||
targetTriple.mingw_x86 = i686-pc-windows-gnu
|
||||
targetSysRoot.mingw_x86 = msys2-mingw-w64-i686-clang-llvm-lld-compiler_rt-8.0.1
|
||||
# For using with Universal Windows Platform (UWP) we need to use slower -emulated-tls option.
|
||||
# See https://youtrack.jetbrains.com/issue/KT-27654.
|
||||
@@ -872,7 +872,7 @@ dependencies.mingw_x64-wasm32 = \
|
||||
target-sysroot-4-embedded \
|
||||
target-toolchain-2-mingw-wasm
|
||||
|
||||
quadruple.wasm32 = wasm32-unknown-unknown
|
||||
targetTriple.wasm32 = wasm32-unknown-unknown
|
||||
targetSysRoot.wasm32 = target-sysroot-4-embedded
|
||||
targetCpu.wasm32 = generic
|
||||
clangFlags.wasm32 = -cc1 -emit-obj -disable-llvm-optzns -x ir
|
||||
|
||||
Reference in New Issue
Block a user