|
1003 | 1003 | ['enable_lto=="true"', { |
1004 | 1004 | 'ldflags': [ '-fno-lto' ], |
1005 | 1005 | }], |
| 1006 | + # Avoid excessive PGO |
| 1007 | + ['enable_pgo_generate=="true"', { |
| 1008 | + 'cflags': [ '-fno-profile' ], |
| 1009 | + 'cflags!': [ '-fprofile-generate' ], |
| 1010 | + 'ldflags': [ '-fno-profile' ], |
| 1011 | + 'ldflags!': [ '-fprofile-generate' ], |
| 1012 | + }, ], |
| 1013 | + ['enable_pgo_use=="true"', { |
| 1014 | + 'cflags': [ '-fno-profile' ], |
| 1015 | + 'cflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1016 | + 'ldflags': [ '-fno-profile' ], |
| 1017 | + 'ldflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1018 | + }, ], |
1006 | 1019 | ], |
1007 | 1020 | }, # fuzz_env |
1008 | 1021 | { |
|
1111 | 1124 | ['enable_lto=="true"', { |
1112 | 1125 | 'ldflags': [ '-fno-lto' ], |
1113 | 1126 | }], |
| 1127 | + # Avoid excessive PGO |
| 1128 | + ['enable_pgo_generate=="true"', { |
| 1129 | + 'cflags': [ '-fno-profile' ], |
| 1130 | + 'cflags!': [ '-fprofile-generate' ], |
| 1131 | + 'ldflags': [ '-fno-profile' ], |
| 1132 | + 'ldflags!': [ '-fprofile-generate' ], |
| 1133 | + }, ], |
| 1134 | + ['enable_pgo_use=="true"', { |
| 1135 | + 'cflags': [ '-fno-profile' ], |
| 1136 | + 'cflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1137 | + 'ldflags': [ '-fno-profile' ], |
| 1138 | + 'ldflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1139 | + }, ], |
1114 | 1140 | ], |
1115 | 1141 | }, # cctest |
1116 | 1142 |
|
|
1168 | 1194 | ['enable_lto=="true"', { |
1169 | 1195 | 'ldflags': [ '-fno-lto' ], |
1170 | 1196 | }], |
| 1197 | + # Avoid excessive PGO |
| 1198 | + ['enable_pgo_generate=="true"', { |
| 1199 | + 'cflags': [ '-fno-profile' ], |
| 1200 | + 'cflags!': [ '-fprofile-generate' ], |
| 1201 | + 'ldflags': [ '-fno-profile' ], |
| 1202 | + 'ldflags!': [ '-fprofile-generate' ], |
| 1203 | + }, ], |
| 1204 | + ['enable_pgo_use=="true"', { |
| 1205 | + 'cflags': [ '-fno-profile' ], |
| 1206 | + 'cflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1207 | + 'ldflags': [ '-fno-profile' ], |
| 1208 | + 'ldflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1209 | + }, ], |
1171 | 1210 | ], |
1172 | 1211 | }, # embedtest |
1173 | 1212 |
|
|
1190 | 1229 | ['enable_lto=="true"', { |
1191 | 1230 | 'ldflags': [ '-fno-lto' ], |
1192 | 1231 | }], |
| 1232 | + # Avoid excessive PGO |
| 1233 | + ['enable_pgo_generate=="true"', { |
| 1234 | + 'cflags': [ '-fno-profile' ], |
| 1235 | + 'cflags!': [ '-fprofile-generate' ], |
| 1236 | + 'ldflags': [ '-fno-profile' ], |
| 1237 | + 'ldflags!': [ '-fprofile-generate' ], |
| 1238 | + }, ], |
| 1239 | + ['enable_pgo_use=="true"', { |
| 1240 | + 'cflags': [ '-fno-profile' ], |
| 1241 | + 'cflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1242 | + 'ldflags': [ '-fno-profile' ], |
| 1243 | + 'ldflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1244 | + }, ], |
1193 | 1245 | ] |
1194 | 1246 | }, # overlapped-checker |
1195 | 1247 | { |
|
1227 | 1279 | ['enable_lto=="true"', { |
1228 | 1280 | 'ldflags': [ '-fno-lto' ], |
1229 | 1281 | }], |
| 1282 | + # Avoid excessive PGO |
| 1283 | + ['enable_pgo_generate=="true"', { |
| 1284 | + 'cflags': [ '-fno-profile' ], |
| 1285 | + 'cflags!': [ '-fprofile-generate' ], |
| 1286 | + 'ldflags': [ '-fno-profile' ], |
| 1287 | + 'ldflags!': [ '-fprofile-generate' ], |
| 1288 | + }, ], |
| 1289 | + ['enable_pgo_use=="true"', { |
| 1290 | + 'cflags': [ '-fno-profile' ], |
| 1291 | + 'cflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1292 | + 'ldflags': [ '-fno-profile' ], |
| 1293 | + 'ldflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1294 | + }, ], |
1230 | 1295 | ] |
1231 | 1296 | }, |
1232 | 1297 | { |
|
1287 | 1352 | ['enable_lto=="true"', { |
1288 | 1353 | 'ldflags': [ '-fno-lto' ], |
1289 | 1354 | }], |
| 1355 | + # Avoid excessive PGO |
| 1356 | + ['enable_pgo_generate=="true"', { |
| 1357 | + 'cflags': [ '-fno-profile' ], |
| 1358 | + 'cflags!': [ '-fprofile-generate' ], |
| 1359 | + 'ldflags': [ '-fno-profile' ], |
| 1360 | + 'ldflags!': [ '-fprofile-generate' ], |
| 1361 | + }, ], |
| 1362 | + ['enable_pgo_use=="true"', { |
| 1363 | + 'cflags': [ '-fno-profile' ], |
| 1364 | + 'cflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1365 | + 'ldflags': [ '-fno-profile' ], |
| 1366 | + 'ldflags!': [ '-fprofile-use -fprofile-correction' ], |
| 1367 | + }, ], |
1290 | 1368 | ], |
1291 | 1369 | }, # node_mksnapshot |
1292 | 1370 | ], # end targets |
|
0 commit comments