@@ -39,7 +39,13 @@ vars = {
39
39
# The list of revisions for these tools comes from Fuchsia, here:
40
40
# https://fuchsia.googlesource.com/integration/+/HEAD/toolchain
41
41
# If there are problems with the toolchain, contact fuchsia-toolchain@.
42
- 'clang_version' : 'git_revision:e8cfbfd05a951b85f80156dffc8eeecb34c7271c' ,
42
+ 'clang_version' : 'git_revision:20d06c833d833ef6b2d0f519cc4a7998d49a2803' ,
43
+
44
+ # The goma version and the clang version can be tightly coupled. If goma
45
+ # stops working on a clang roll, this may need to be updated using the value
46
+ # from the 'integration' tag of
47
+ # https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/goma/client
48
+ 'goma_version' : ' git_revision:41b3bcb64014144a844153fd5588c36411fffb56' ,
43
49
44
50
# When updating the Dart revision, ensure that all entries that are
45
51
# dependencies of Dart are also updated to match the entries in the
@@ -98,7 +104,12 @@ vars = {
98
104
"checkout_llvm" : False ,
99
105
100
106
# Setup Git hooks by default.
101
- "setup_githooks" : True ,
107
+ 'setup_githooks' : True ,
108
+
109
+ # When this is true, the goma client will be downloaded from cipd, and
110
+ # the engine build will prefer to use this client over a client that is
111
+ # specified by GOMA_DIR, or installed in the default goma install location.
112
+ 'use_cipd_goma' : False ,
102
113
103
114
# This is not downloaded be default because it increases the
104
115
# `gclient sync` time by between 1 and 3 minutes. This option is enabled
@@ -830,6 +841,40 @@ deps = {
830
841
'dep_type' : 'cipd' ,
831
842
},
832
843
844
+ # GOMA
845
+ 'src/buildtools/mac-x64/goma' : {
846
+ 'packages' : [
847
+ {
848
+ 'package' : 'fuchsia/third_party/goma/client/mac-amd64' ,
849
+ 'version' : Var ('goma_version' ),
850
+ }
851
+ ],
852
+ 'condition' : 'use_cipd_goma and host_os == "mac"' ,
853
+ 'dep_type' : 'cipd' ,
854
+ },
855
+
856
+ 'src/buildtools/linux-x64/goma' : {
857
+ 'packages' : [
858
+ {
859
+ 'package' : 'fuchsia/third_party/goma/client/linux-amd64' ,
860
+ 'version' : Var ('goma_version' ),
861
+ }
862
+ ],
863
+ 'condition' : 'use_cipd_goma and host_os == "linux"' ,
864
+ 'dep_type' : 'cipd' ,
865
+ },
866
+
867
+ 'src/buildtools/windows-x64/goma' : {
868
+ 'packages' : [
869
+ {
870
+ 'package' : 'fuchsia/third_party/goma/client/windows-amd64' ,
871
+ 'version' : Var ('goma_version' ),
872
+ }
873
+ ],
874
+ 'condition' : 'use_cipd_goma and download_windows_deps' ,
875
+ 'dep_type' : 'cipd' ,
876
+ },
877
+
833
878
# Get the SDK from https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core at the 'latest' tag
834
879
# Get the toolchain from https://chrome-infra-packages.appspot.com/p/fuchsia/clang at the 'goma' tag
835
880
'src/fuchsia/sdk/mac' : {
@@ -965,6 +1010,36 @@ hooks = [
965
1010
'src/flutter/tools/activate_emsdk.py' ,
966
1011
]
967
1012
},
1013
+ {
1014
+ 'name' : 'Start compiler proxy' ,
1015
+ 'pattern' : '.' ,
1016
+ 'condition' : 'use_cipd_goma and host_os == "mac"' ,
1017
+ 'action' : [
1018
+ 'python3' ,
1019
+ 'src/buildtools/mac-x64/goma/goma_ctl.py' ,
1020
+ 'ensure_start'
1021
+ ]
1022
+ },
1023
+ {
1024
+ 'name' : 'Start compiler proxy' ,
1025
+ 'pattern' : '.' ,
1026
+ 'condition' : 'use_cipd_goma and host_os == "linux"' ,
1027
+ 'action' : [
1028
+ 'python3' ,
1029
+ 'src/buildtools/linux-x64/goma/goma_ctl.py' ,
1030
+ 'ensure_start'
1031
+ ]
1032
+ },
1033
+ {
1034
+ 'name' : 'Start compiler proxy' ,
1035
+ 'pattern' : '.' ,
1036
+ 'condition' : 'use_cipd_goma and download_windows_deps' ,
1037
+ 'action' : [
1038
+ 'python3' ,
1039
+ 'src/buildtools/windows-x64/goma/goma_ctl.py' ,
1040
+ 'ensure_start'
1041
+ ]
1042
+ },
968
1043
{
969
1044
'name' : 'Setup githooks' ,
970
1045
'pattern' : '.' ,
0 commit comments