mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 16:44:59 +00:00
Revert to clang toolchain that was rolled in March
This reverts commitfef426ac0b
This reverts commite9f629f607
This reverts commit413f60a8b6
Reason for revert: With newer clang toolchain for MachOS, the produced MachO binaries (e.g. `dartaotruntime`) can no longer be signed with `codesign` on older MacOS versions (before MacOS 12). We will report this breaking change to fuchsia-clang team and revert to older (working) clang in the meantime to unblock releases. Issue https://github.com/dart-lang/sdk/issues/49275 Tested: ci Co-authored-by: Martin Kustermann <kustermann@google.com> Change-Id: I0d4fa6617df2908c4af31e102f5faf9e3ea1df95 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256208 Reviewed-by: Alexander Thomas <athom@google.com> Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Alexander Thomas <athom@google.com> Reviewed-by: Tess Strickland <sstrickl@google.com>
This commit is contained in:
parent
2b27d3257b
commit
f73f25edab
17
DEPS
17
DEPS
|
@ -66,8 +66,8 @@ vars = {
|
|||
# The list of revisions for these tools comes from Fuchsia, here:
|
||||
# https://fuchsia.googlesource.com/integration/+/HEAD/toolchain
|
||||
# If there are problems with the toolchain, contact fuchsia-toolchain@.
|
||||
"clang_revision": "60d276923902051192eba692e5312e605c9d9f65",
|
||||
"gn_revision": "0bcd37bd2b83f1a9ee17088037ebdfe6eab6d31a",
|
||||
"clang_revision": "c2592c374e469f343ecea82d6728609650924259",
|
||||
"gn_revision": "d7c2209cebcfe37f46dba7be4e1a7000ffc342fb",
|
||||
|
||||
# Scripts that make 'git cl format' work.
|
||||
"clang_format_scripts_rev": "bb994c6f067340c1135eb43eed84f4b33cfa7397",
|
||||
|
@ -454,7 +454,8 @@ deps = {
|
|||
"version": "git_revision:" + Var("clang_revision"),
|
||||
},
|
||||
],
|
||||
"condition": "host_os == mac", # On ARM64 Macs too because Goma doesn't support the host-arm64 toolchain.
|
||||
# TODO(https://fxbug.dev/73385): Use arm64 toolchain on arm64 when it exists.
|
||||
"condition": "host_cpu == x64 and host_os == mac or host_cpu == arm64 and host_os == mac",
|
||||
"dep_type": "cipd",
|
||||
},
|
||||
Var("dart_root") + "/buildtools/win-x64/clang": {
|
||||
|
@ -477,16 +478,6 @@ deps = {
|
|||
"condition": "host_os == 'linux' and host_cpu == 'arm64'",
|
||||
"dep_type": "cipd",
|
||||
},
|
||||
Var("dart_root") + "/buildtools/mac-arm64/clang": {
|
||||
"packages": [
|
||||
{
|
||||
"package": "fuchsia/third_party/clang/mac-arm64",
|
||||
"version": "git_revision:" + Var("clang_revision"),
|
||||
},
|
||||
],
|
||||
"condition": "host_os == 'mac' and host_cpu == 'arm64'",
|
||||
"dep_type": "cipd",
|
||||
},
|
||||
|
||||
Var("dart_root") + "/third_party/webdriver/chrome": {
|
||||
"packages": [
|
||||
|
|
|
@ -2,11 +2,9 @@
|
|||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("../../toolchain/goma.gni")
|
||||
|
||||
_toolchain_cpu = host_cpu
|
||||
if (host_os == "mac" && use_goma) {
|
||||
# Goma does not support ARM64.
|
||||
if (host_os == "mac") {
|
||||
# TODO(https://fxbug.dev/73385): Use arm64 toolchain on arm64 when it exists.
|
||||
_toolchain_cpu = "x64"
|
||||
}
|
||||
|
||||
|
|
|
@ -377,10 +377,7 @@ config("compiler") {
|
|||
} else if (is_linux) {
|
||||
toolchain_stamp_file =
|
||||
"//buildtools/linux-x64/clang/.versions/clang.cipd_version"
|
||||
} else if (is_mac && host_cpu == "arm64") {
|
||||
toolchain_stamp_file =
|
||||
"//buildtools/mac-arm64/clang/.versions/clang.cipd_version"
|
||||
} else if (is_mac) {
|
||||
} else {
|
||||
toolchain_stamp_file =
|
||||
"//buildtools/mac-x64/clang/.versions/clang.cipd_version"
|
||||
}
|
||||
|
@ -551,7 +548,6 @@ if (is_win) {
|
|||
"-Wno-microsoft-unqualified-friend",
|
||||
"-Wno-unknown-argument", # icu
|
||||
"-Wno-unused-value", # crashpad
|
||||
"-Wno-deprecated-non-prototype", # zlib
|
||||
]
|
||||
} else {
|
||||
default_warning_flags += [
|
||||
|
@ -583,7 +579,6 @@ if (is_win) {
|
|||
default_warning_flags += [
|
||||
"-Wno-tautological-constant-compare",
|
||||
"-Wno-unused-but-set-variable", # icu
|
||||
"-Wno-deprecated-non-prototype", # zlib
|
||||
]
|
||||
} else {
|
||||
default_warning_flags +=
|
||||
|
|
|
@ -20,15 +20,6 @@ if (use_goma) {
|
|||
goma_prefix = ""
|
||||
}
|
||||
|
||||
# Goma doesn't support the host-arm64 toolchain, so continue using Rosetta.
|
||||
if (host_cpu == "arm64" && !use_goma) {
|
||||
rebased_clang_dir =
|
||||
rebase_path("//buildtools/mac-arm64/clang/bin", root_build_dir)
|
||||
} else {
|
||||
rebased_clang_dir =
|
||||
rebase_path("//buildtools/mac-x64/clang/bin", root_build_dir)
|
||||
}
|
||||
|
||||
# Shared toolchain definition. Invocations should set toolchain_os to set the
|
||||
# build args in this definition.
|
||||
template("mac_toolchain") {
|
||||
|
@ -220,10 +211,28 @@ template("mac_toolchain") {
|
|||
}
|
||||
}
|
||||
|
||||
# Toolchain used for Mac host targets.
|
||||
mac_toolchain("clang_x64") {
|
||||
toolchain_cpu = "x64"
|
||||
toolchain_os = "mac"
|
||||
prefix = rebased_clang_dir
|
||||
prefix = rebase_path("//buildtools/mac-x64/clang/bin", root_build_dir)
|
||||
cc = "${goma_prefix}$prefix/clang"
|
||||
cxx = "${goma_prefix}$prefix/clang++"
|
||||
ar = "${prefix}/llvm-ar"
|
||||
ld = cxx
|
||||
strip = "strip"
|
||||
is_clang = true
|
||||
if (mac_enable_relative_sdk_path) {
|
||||
mac_sdk_path = rebase_path(mac_sdk_path, root_build_dir)
|
||||
}
|
||||
sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min"
|
||||
}
|
||||
|
||||
# Toolchain used for Mac host (i386) targets.
|
||||
mac_toolchain("clang_x86") {
|
||||
toolchain_cpu = "i386"
|
||||
toolchain_os = "mac"
|
||||
prefix = rebase_path("//buildtools/mac-x64/clang/bin", root_build_dir)
|
||||
cc = "${goma_prefix}$prefix/clang"
|
||||
cxx = "${goma_prefix}$prefix/clang++"
|
||||
ar = "${prefix}/llvm-ar"
|
||||
|
@ -239,7 +248,7 @@ mac_toolchain("clang_x64") {
|
|||
mac_toolchain("clang_arm64") {
|
||||
toolchain_cpu = "arm64"
|
||||
toolchain_os = "mac"
|
||||
prefix = rebased_clang_dir
|
||||
prefix = rebase_path("//buildtools/mac-x64/clang/bin", root_build_dir)
|
||||
cc = "${goma_prefix}$prefix/clang"
|
||||
cxx = "${goma_prefix}$prefix/clang++"
|
||||
ar = "${prefix}/llvm-ar"
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
namespace dart {
|
||||
|
||||
#if defined(DEBUG)
|
||||
const intptr_t kSkipCount = 7;
|
||||
#elif !(defined(PRODUCT) || defined(DEBUG))
|
||||
const intptr_t kSkipCount = 6;
|
||||
#elif !(defined(PRODUCT) || defined(DEBUG))
|
||||
const intptr_t kSkipCount = 5;
|
||||
#endif
|
||||
|
||||
} // namespace dart
|
||||
|
|
Loading…
Reference in a new issue