mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[infra] Roll buildtools to c72a1c5aadde06505b7bb4641720880f3db28ff9
Change-Id: I277e48e077aa8025e5d6e99fc46895bb57073c1c Reviewed-on: https://dart-review.googlesource.com/c/84448 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Zach Anderson <zra@google.com>
This commit is contained in:
parent
01e85fa2e0
commit
c2f1cd49a3
2
DEPS
2
DEPS
|
@ -42,7 +42,7 @@ vars = {
|
||||||
# Fuchsia. This revision should be kept up to date with the revision pulled
|
# Fuchsia. This revision should be kept up to date with the revision pulled
|
||||||
# by the Flutter engine. If there are problems with the toolchain, contact
|
# by the Flutter engine. If there are problems with the toolchain, contact
|
||||||
# fuchsia-toolchain@.
|
# fuchsia-toolchain@.
|
||||||
"buildtools_revision": "446d5b1019dcbe7835236dc85261e91cf29a9239",
|
"buildtools_revision": "9e69ccfa6c1d3d9d3d0498c2b73338c169ed4377",
|
||||||
|
|
||||||
# Scripts that make 'git cl format' work.
|
# Scripts that make 'git cl format' work.
|
||||||
"clang_format_scripts_rev": "c09c8deeac31f05bd801995c475e7c8070f9ecda",
|
"clang_format_scripts_rev": "c09c8deeac31f05bd801995c475e7c8070f9ecda",
|
||||||
|
|
|
@ -246,11 +246,14 @@ config("compiler") {
|
||||||
ldflags += [ "-pthread" ]
|
ldflags += [ "-pthread" ]
|
||||||
if (is_clang) {
|
if (is_clang) {
|
||||||
if (current_cpu == "arm") {
|
if (current_cpu == "arm") {
|
||||||
cflags += [ "--target=arm-linux-gnueabihf" ]
|
cflags += [ "--target=armv7-linux-gnueabihf" ]
|
||||||
ldflags += [ "--target=arm-linux-gnueabihf" ]
|
ldflags += [ "--target=armv7-linux-gnueabihf" ]
|
||||||
} else if (current_cpu == "arm64") {
|
} else if (current_cpu == "arm64") {
|
||||||
cflags += [ "--target=aarch64-linux-gnu" ]
|
cflags += [ "--target=aarch64-linux-gnu" ]
|
||||||
ldflags += [ "--target=aarch64-linux-gnu" ]
|
ldflags += [ "--target=aarch64-linux-gnu" ]
|
||||||
|
} else if (current_cpu == "x86") {
|
||||||
|
cflags += [ "--target=i386-linux-gnu" ]
|
||||||
|
ldflags += [ "--target=i386-linux-gnu" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -692,7 +695,7 @@ if (is_win) {
|
||||||
"-Wl,--gc-sections",
|
"-Wl,--gc-sections",
|
||||||
]
|
]
|
||||||
|
|
||||||
if (is_clang) {
|
if (is_clang && !using_sanitizer) {
|
||||||
# Identical code folding to reduce size.
|
# Identical code folding to reduce size.
|
||||||
# Warning: This changes C/C++ semantics of function pointer comparison.
|
# Warning: This changes C/C++ semantics of function pointer comparison.
|
||||||
common_optimize_on_ldflags += [ "-Wl,--icf=all" ]
|
common_optimize_on_ldflags += [ "-Wl,--icf=all" ]
|
||||||
|
|
|
@ -24,7 +24,7 @@ DEPOT_PATH = find_depot_tools.add_depot_tools_to_path()
|
||||||
|
|
||||||
def Update():
|
def Update():
|
||||||
path = os.path.join(BUILDTOOLS, 'update.sh')
|
path = os.path.join(BUILDTOOLS, 'update.sh')
|
||||||
command = ['/bin/bash', path, '--clang', '--gn']
|
command = ['/bin/bash', path, '--clang', '--gn', '--ninja']
|
||||||
return subprocess.call(command, cwd=DART_ROOT)
|
return subprocess.call(command, cwd=DART_ROOT)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue