未验证 提交 0419f1d4 编写于 作者: C Chase Latta 提交者: GitHub

Revert "bump fuchsia toolchain to clang-12" (#23456)

上级 7668007b
...@@ -98,7 +98,7 @@ allowed_hosts = [ ...@@ -98,7 +98,7 @@ allowed_hosts = [
] ]
deps = { deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'c80bb183b30b3df12a3d8a6db235c0171c10d6a0', 'src': 'https://github.com/flutter/buildroot.git' + '@' + '3d37855508a4de2481ad0fead8e15563f0210c2c',
# Fuchsia compatibility # Fuchsia compatibility
# #
...@@ -532,6 +532,16 @@ deps = { ...@@ -532,6 +532,16 @@ deps = {
'condition': 'host_os == "mac"', 'condition': 'host_os == "mac"',
'dep_type': 'cipd', 'dep_type': 'cipd',
}, },
'src/fuchsia/toolchain/mac': {
'packages': [
{
'package': 'fuchsia/clang/mac-amd64',
'version': 'OzTZOKkICT0yD82Dbx0jvVn5hN5eOSi6ByVTDseE7i0C'
}
],
'condition': 'host_os == "mac"',
'dep_type': 'cipd',
},
'src/fuchsia/sdk/linux': { 'src/fuchsia/sdk/linux': {
'packages': [ 'packages': [
{ {
...@@ -542,14 +552,14 @@ deps = { ...@@ -542,14 +552,14 @@ deps = {
'condition': 'host_os == "linux"', 'condition': 'host_os == "linux"',
'dep_type': 'cipd', 'dep_type': 'cipd',
}, },
'src/fuchsia/toolchain/{host_os}': { 'src/fuchsia/toolchain/linux': {
'packages': [ 'packages': [
{ {
'package': 'fuchsia/third_party/clang/${{platform}}', 'package': 'fuchsia/clang/linux-amd64',
'version': 'git_revision:3aa8e071dd1ae7e9fb9e28fa9fcdb9f9fdb7aa06' 'version': 'OT6p30bQQhyCzRSy7xPsSbZ88J3PWOnneenkMZ0j7kIC'
} }
], ],
'condition': 'host_os == "mac" or host_os == "linux"', 'condition': 'host_os == "linux"',
'dep_type': 'cipd', 'dep_type': 'cipd',
}, },
} }
......
...@@ -26,10 +26,7 @@ if (is_fuchsia) { ...@@ -26,10 +26,7 @@ if (is_fuchsia) {
assert(false, "OS not supported") assert(false, "OS not supported")
} }
clang_manifest = rebase_path("$clang_base/runtime.json") clang_manifest = rebase_path("$clang_base/${clang_target}.manifest")
clang_manifest_json = exec_script("//flutter/tools/fuchsia/parse_manifest.py", clang_manifest_json = exec_script("//flutter/tools/fuchsia/parse_manifest.py",
[ [ "--input=${clang_manifest}" ],
"--input=${clang_manifest}",
"--clang-cpu=${clang_cpu}",
],
"json") "json")
...@@ -48,17 +48,17 @@ common_libs = [ ...@@ -48,17 +48,17 @@ common_libs = [
{ {
name = "libc++.so.2" name = "libc++.so.2"
path = rebase_path( path = rebase_path(
"$clang_base/${clang_manifest_json.md5_19df03aecdc9eb27bc8b4038352f2b27}") "$clang_base/${clang_manifest_json.md5_33bfe15b05ada4ed326fbc33adb39b95}")
}, },
{ {
name = "libc++abi.so.1" name = "libc++abi.so.1"
path = rebase_path( path = rebase_path(
"$clang_base/${clang_manifest_json.md5_6aff1b5f218d4a9278d85d63d0695af8}") "$clang_base/${clang_manifest_json.md5_916c01a85e3353f124776599819ecb1c}")
}, },
{ {
name = "libunwind.so.1" name = "libunwind.so.1"
path = rebase_path( path = rebase_path(
"$clang_base/${clang_manifest_json.md5_fb2bd871885ef42c2cf3138655f901ed}") "$clang_base/${clang_manifest_json.md5_beb70f40d525448b39ea87d9f5811e56}")
}, },
] ]
......
...@@ -12,34 +12,27 @@ import os ...@@ -12,34 +12,27 @@ import os
import sys import sys
import hashlib import hashlib
def main(): def main():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument( parser.add_argument(
'--input', dest='file_path', action='store', required=True) '--input', dest='file_path', action='store', required=True)
parser.add_argument(
'--clang-cpu', dest='clang_cpu', action='store', required=True)
args = parser.parse_args() args = parser.parse_args()
with open(args.file_path) as f: files = open(args.file_path, 'r')
data = json.load(f) lines = files.read().split()
output = {} output = {}
target = args.clang_cpu + '-fuchsia'
for line in lines:
for d in data: key, val = line.strip().split('=')
if target in d['target']:
for runtime in d['runtime']:
# key contains the soname and the cflags used to compile it.
# this allows us to distinguish between different sanitizers
# and experiments
key = runtime['soname'] + ''.join(d['cflags'])
md5 = hashlib.md5(key.encode()).hexdigest() md5 = hashlib.md5(key.encode()).hexdigest()
hash_key = 'md5_%s' % md5 hash_key = 'md5_%s' % md5
# Uncomment this line to get the hash keys # Uncomment this line to get the hash keys
# print runtime['dist'], d['cflags'], hash_key # print val, hash_key
output[hash_key] = os.path.dirname(runtime['dist']) output[hash_key] = os.path.dirname(val)
print(json.dumps(output)) print(json.dumps(output))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册