Remove -target-cpu flag from Mac targets

Because this option is unsupported in
bitcode embedding.
This commit is contained in:
Sergey Bogolepov
2021-03-29 12:17:12 +07:00
parent dd20dd9806
commit f1280a63d3
+2 -2
View File
@@ -98,7 +98,7 @@ targetToolchain.macos_arm64-macos_x64 = target-toolchain-xcode_12_2-macos_x64
arch.macos_x64 = x86_64
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 -target-cpu $targetCpu.macos_x64
clangFlags.macos_x64 = -cc1 -emit-obj -disable-llvm-passes -x ir
clangNooptFlags.macos_x64 = -O1
clangOptFlags.macos_x64 = -O3
clangDebugFlags.macos_x64 = -O0
@@ -137,7 +137,7 @@ arch.macos_arm64 = arm64
targetSysRoot.macos_arm64 = target-sysroot-xcode_12_2-macos_x64
# TODO: Check Clang behaviour.
targetCpu.macos_arm64 = cyclone
clangFlags.macos_arm64 = -cc1 -emit-obj -disable-llvm-passes -x ir -target-cpu $targetCpu.macos_arm64
clangFlags.macos_arm64 = -cc1 -emit-obj -disable-llvm-passes -x ir
clangNooptFlags.macos_arm64 = -O1
clangOptFlags.macos_arm64 = -O3
# See clangDebugFlags.ios_arm64