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

Side by Side Diff: gypfiles/toolchain.gypi

Issue 1958253004: Revert of [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',
1187 '-Os', 1186 '-Os',
1188 ], 1187 ],
1189 'cflags': [ 1188 'cflags': [
1190 '-fdata-sections', 1189 '-fdata-sections',
1191 '-ffunction-sections', 1190 '-ffunction-sections',
1192 '-O2', 1191 ],
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 }],
1193 ], 1203 ],
1194 }], 1204 }],
1195 ['OS=="mac"', { 1205 ['OS=="mac"', {
1196 'xcode_settings': { 1206 'xcode_settings': {
1197 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 1207 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
1198 'GCC_STRICT_ALIASING': 'YES', 1208 'GCC_STRICT_ALIASING': 'YES',
1199 }, 1209 },
1200 }], 1210 }],
1201 ['v8_enable_slow_dchecks==1', { 1211 ['v8_enable_slow_dchecks==1', {
1202 'defines': [ 1212 'defines': [
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 }, # Debug 1294 }, # Debug
1285 'ReleaseBase': { 1295 'ReleaseBase': {
1286 'abstract': 1, 1296 'abstract': 1,
1287 'variables': { 1297 'variables': {
1288 'v8_enable_slow_dchecks%': 0, 1298 'v8_enable_slow_dchecks%': 0,
1289 }, 1299 },
1290 'conditions': [ 1300 'conditions': [
1291 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ 1301 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \
1292 or OS=="aix"', { 1302 or OS=="aix"', {
1293 'cflags!': [ 1303 'cflags!': [
1294 '-O3',
1295 '-Os', 1304 '-Os',
1296 ], 1305 ],
1297 'cflags': [ 1306 'cflags': [
1298 '-fdata-sections', 1307 '-fdata-sections',
1299 '-ffunction-sections', 1308 '-ffunction-sections',
1300 '<(wno_array_bounds)', 1309 '<(wno_array_bounds)',
1301 '-O2', 1310 ],
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 }],
1302 ], 1322 ],
1303 }], 1323 }],
1304 ['OS=="android"', { 1324 ['OS=="android"', {
1305 'cflags!': [ 1325 'cflags!': [
1306 '-O3', 1326 '-O3',
1307 '-Os', 1327 '-Os',
1308 ], 1328 ],
1309 'cflags': [ 1329 'cflags': [
1310 '-fdata-sections', 1330 '-fdata-sections',
1311 '-ffunction-sections', 1331 '-ffunction-sections',
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 ], 1390 ],
1371 }, 1391 },
1372 'Release_x64': { 1392 'Release_x64': {
1373 'inherit_from': ['ReleaseBase'], 1393 'inherit_from': ['ReleaseBase'],
1374 }, 1394 },
1375 }], 1395 }],
1376 ], 1396 ],
1377 }, # configurations 1397 }, # configurations
1378 }, # target_defaults 1398 }, # target_defaults
1379 } 1399 }
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