Reland "[build] Use Fuchsia windows clang toolchain"

This reverts commit fc9383ed41.

Reason for revert: After discussion with athom, the breakage is a known temporary situation.

Original change's description:
> Revert "[build] Use Fuchsia windows clang toolchain"
>
> This reverts commit e479049467.
>
> Reason for revert: Broke build on vm-fuchsia-release-x64.
>
> Original change's description:
> > [build] Use Fuchsia windows clang toolchain
> >
> > Change-Id: Ie04039c736f40174cc45a61aa637a88fa53d9024
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201862
> > Reviewed-by: Alexander Thomas <athom@google.com>
>
> TBR=aam@google.com,athom@google.com
>
> Change-Id: I3f1ce2c30bf0600b025bc95a051e569660e140c0
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204582
> Reviewed-by: Tess Strickland <sstrickl@google.com>
> Commit-Queue: Tess Strickland <sstrickl@google.com>

# Not skipping CQ checks because this is a reland.

Change-Id: I0efe29d2dc11a2f3e65d65d2f2eaecc4c827490a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204583
Reviewed-by: Tess Strickland <sstrickl@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
This commit is contained in:
Tess Strickland 2021-06-23 08:50:47 +00:00
parent fc9383ed41
commit 3c7075baca
5 changed files with 33 additions and 23 deletions

38
DEPS
View file

@ -63,7 +63,7 @@ vars = {
# The list of revisions for these tools comes from Fuchsia, here:
# https://fuchsia.googlesource.com/integration/+/HEAD/prebuilts
# If there are problems with the toolchain, contact fuchsia-toolchain@.
"clang_revision": "3dc24bc31edbc01dea085b24a6a6b024d7ae531c",
"clang_revision": "7c4e9a68264ffeef6178865be76c45c4fb6390af",
"gn_revision": "39a87c0b36310bdf06b692c098f199a0d97fc810",
# Scripts that make 'git cl format' work.
@ -199,16 +199,6 @@ deps = {
Var("chromium_git") + "/chromium/llvm-project/cfe/tools/clang-format.git" +
"@" + Var("clang_format_scripts_rev"),
Var("dart_root") + "/third_party/llvm-build/Release+Asserts": {
"packages": [
{
"package": "flutter/clang/win-amd64",
"version": "git_revision:5ec206df8534d2dd8cb9217c3180e5ddba587393"
}
],
"condition": "download_windows_deps",
"dep_type": "cipd",
},
Var("dart_root") + "/benchmarks-internal": {
"url": Var("dart_internal_git") + "/benchmarks-internal.git" +
"@" + Var("benchmarks_internal_rev"),
@ -496,15 +486,35 @@ deps = {
Var("dart_root") + "/third_party/pkg/yaml":
Var("dart_git") + "yaml.git" + "@" + Var("yaml_rev"),
Var("dart_root") + "/buildtools/" + Var("host_os") + "-x64/clang": {
Var("dart_root") + "/buildtools/linux-x64/clang": {
"packages": [
{
"package": "fuchsia/third_party/clang/" + Var("host_os") + "-amd64",
"package": "fuchsia/third_party/clang/linux-amd64",
"version": "git_revision:" + Var("clang_revision"),
},
],
"condition": "host_cpu == x64 and host_os == linux",
"dep_type": "cipd",
},
Var("dart_root") + "/buildtools/mac-x64/clang": {
"packages": [
{
"package": "fuchsia/third_party/clang/mac-amd64",
"version": "git_revision:" + Var("clang_revision"),
},
],
# TODO(https://fxbug.dev/73385): Use arm64 toolchain on arm64 when it exists.
"condition": "host_cpu == x64 and (host_os == linux or host_os == mac) or host_cpu == arm64 and host_os == mac",
"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": {
"packages": [
{
"package": "fuchsia/third_party/clang/windows-amd64",
"version": "git_revision:" + Var("clang_revision"),
},
],
"condition": "host_cpu == x64 and host_os == win",
"dep_type": "cipd",
},
Var("dart_root") + "/buildtools/linux-arm64/clang": {

View file

@ -552,7 +552,10 @@ if (is_win) {
]
if (is_clang) {
default_warning_flags += [ "-Wno-tautological-constant-compare" ]
default_warning_flags += [
"-Wno-tautological-constant-compare",
"-Wno-unused-but-set-variable", # icu
]
} else {
default_warning_flags +=
[ "-Wno-ignored-qualifiers" ] # Warnings in BoringSSL headers

View file

@ -6,12 +6,10 @@ if (is_linux && !is_chromeos) {
# TODO(GYP): Figure out which of these work and are needed on other platforms.
copy("copy_llvm_symbolizer") {
if (is_win) {
sources =
[ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ]
sources = [ "//buildtools/win-x64/clang/bin/llvm-symbolizer.exe" ]
outputs = [ "$root_out_dir/llvm-symbolizer.exe" ]
} else {
sources =
[ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ]
sources = [ "//buildtools/win-x64/clang/bin/llvm-symbolizer" ]
outputs = [ "$root_out_dir/llvm-symbolizer" ]
}
}

View file

@ -260,8 +260,7 @@ if (current_cpu == "x86") {
msvc_toolchain("clang_x86") {
environment = "environment.x86"
current_cpu = "x86"
prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
root_build_dir)
prefix = rebase_path("//buildtools/win-x64/clang/bin", root_build_dir)
cl = "${goma_prefix}$prefix/clang-cl.exe"
is_clang = true
}
@ -277,8 +276,7 @@ if (current_cpu == "x64") {
msvc_toolchain("clang_x64") {
environment = "environment.x64"
current_cpu = "x64"
prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
root_build_dir)
prefix = rebase_path("//buildtools/win-x64/clang/bin", root_build_dir)
cl = "${goma_prefix}$prefix/clang-cl.exe"
is_clang = true
}

View file

@ -16,6 +16,7 @@ config("internal_config") {
"-Wno-unused-result",
"-Wno-unused-parameter",
"-Wno-unused-function",
"-Wno-unused-but-set-variable",
"-Wno-vla",
"-g3",
"-ggdb3",