Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: gypfiles/toolchain.gypi

Issue 1963693004: [build] Use -O2 on linux by default (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 }, 1176 },
1177 'variables': { 1177 'variables': {
1178 'v8_enable_slow_dchecks%': 0, 1178 'v8_enable_slow_dchecks%': 0,
1179 }, 1179 },
1180 'conditions': [ 1180 'conditions': [
1181 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ 1181 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
1182 OS=="qnx" or OS=="aix"', { 1182 OS=="qnx" or OS=="aix"', {
1183 'cflags!': [ 1183 'cflags!': [
1184 '-O0', 1184 '-O0',
1185 '-O1', 1185 '-O1',
1186 '-O3',
1186 '-Os', 1187 '-Os',
1187 ], 1188 ],
1188 'cflags': [ 1189 'cflags': [
1189 '-fdata-sections', 1190 '-fdata-sections',
1190 '-ffunction-sections', 1191 '-ffunction-sections',
1191 ], 1192 '-O2',
1192 'conditions': [
1193 # TODO(crbug.com/272548): Avoid -O3 in NaCl
1194 # Don't use -O3 with sanitizers.
1195 ['nacl_target_arch=="none" and asan==0 and msan==0 and lsan==0 \
1196 and tsan==0 and ubsan==0 and ubsan_vptr==0', {
1197 'cflags': ['-O3'],
1198 'cflags!': ['-O2'],
1199 }, {
1200 'cflags': ['-O2'],
1201 'cflags!': ['-O3'],
1202 }],
1203 ], 1193 ],
1204 }], 1194 }],
1205 ['OS=="mac"', { 1195 ['OS=="mac"', {
1206 'xcode_settings': { 1196 'xcode_settings': {
1207 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 1197 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
1208 'GCC_STRICT_ALIASING': 'YES', 1198 'GCC_STRICT_ALIASING': 'YES',
1209 }, 1199 },
1210 }], 1200 }],
1211 ['v8_enable_slow_dchecks==1', { 1201 ['v8_enable_slow_dchecks==1', {
1212 'defines': [ 1202 'defines': [
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 }, # Debug 1284 }, # Debug
1295 'ReleaseBase': { 1285 'ReleaseBase': {
1296 'abstract': 1, 1286 'abstract': 1,
1297 'variables': { 1287 'variables': {
1298 'v8_enable_slow_dchecks%': 0, 1288 'v8_enable_slow_dchecks%': 0,
1299 }, 1289 },
1300 'conditions': [ 1290 'conditions': [
1301 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ 1291 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \
1302 or OS=="aix"', { 1292 or OS=="aix"', {
1303 'cflags!': [ 1293 'cflags!': [
1294 '-O3',
1304 '-Os', 1295 '-Os',
1305 ], 1296 ],
1306 'cflags': [ 1297 'cflags': [
1307 '-fdata-sections', 1298 '-fdata-sections',
1308 '-ffunction-sections', 1299 '-ffunction-sections',
1309 '<(wno_array_bounds)', 1300 '<(wno_array_bounds)',
1310 ], 1301 '-O2',
1311 'conditions': [
1312 # TODO(crbug.com/272548): Avoid -O3 in NaCl
1313 # Don't use -O3 with sanitizers.
1314 ['nacl_target_arch=="none" and asan==0 and msan==0 and lsan==0 \
1315 and tsan==0 and ubsan==0 and ubsan_vptr==0', {
1316 'cflags': ['-O3'],
1317 'cflags!': ['-O2'],
1318 }, {
1319 'cflags': ['-O2'],
1320 'cflags!': ['-O3'],
1321 }],
1322 ], 1302 ],
1323 }], 1303 }],
1324 ['OS=="android"', { 1304 ['OS=="android"', {
1325 'cflags!': [ 1305 'cflags!': [
1326 '-O3', 1306 '-O3',
1327 '-Os', 1307 '-Os',
1328 ], 1308 ],
1329 'cflags': [ 1309 'cflags': [
1330 '-fdata-sections', 1310 '-fdata-sections',
1331 '-ffunction-sections', 1311 '-ffunction-sections',
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 ], 1370 ],
1391 }, 1371 },
1392 'Release_x64': { 1372 'Release_x64': {
1393 'inherit_from': ['ReleaseBase'], 1373 'inherit_from': ['ReleaseBase'],
1394 }, 1374 },
1395 }], 1375 }],
1396 ], 1376 ],
1397 }, # configurations 1377 }, # configurations
1398 }, # target_defaults 1378 }, # target_defaults
1399 } 1379 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698