OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 'conditions': [ | 341 'conditions': [ |
342 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ | 342 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ |
343 or OS=="android"', { | 343 or OS=="android"', { |
344 'cflags!': [ | 344 'cflags!': [ |
345 '-O2', | 345 '-O2', |
346 '-Os', | 346 '-Os', |
347 ], | 347 ], |
348 'cflags': [ | 348 'cflags': [ |
349 '-fdata-sections', | 349 '-fdata-sections', |
350 '-ffunction-sections', | 350 '-ffunction-sections', |
351 '-fomit-frame-pointer', | |
352 '-O3', | 351 '-O3', |
353 ], | 352 ], |
354 'conditions': [ | 353 'conditions': [ |
355 [ 'gcc_version==44 and clang==0', { | 354 [ 'gcc_version==44 and clang==0', { |
356 'cflags': [ | 355 'cflags': [ |
357 # Avoid crashes with gcc 4.4 in the v8 test suite. | 356 # Avoid crashes with gcc 4.4 in the v8 test suite. |
358 '-fno-tree-vrp', | 357 '-fno-tree-vrp', |
359 ], | 358 ], |
360 }], | 359 }], |
361 ], | 360 ], |
362 }], | 361 }], |
363 ['OS=="mac"', { | 362 ['OS=="mac"', { |
364 'xcode_settings': { | 363 'xcode_settings': { |
365 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 364 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
366 | 365 |
367 # -fstrict-aliasing. Mainline gcc | 366 # -fstrict-aliasing. Mainline gcc |
368 # enables this at -O2 and above, | 367 # enables this at -O2 and above, |
369 # but Apple gcc does not unless it | 368 # but Apple gcc does not unless it |
370 # is specified explicitly. | 369 # is specified explicitly. |
371 'GCC_STRICT_ALIASING': 'YES', | 370 'GCC_STRICT_ALIASING': 'YES', |
372 }, | 371 }, |
373 }], # OS=="mac" | 372 }], # OS=="mac" |
374 ['OS=="win"', { | 373 ['OS=="win"', { |
375 'msvs_settings': { | 374 'msvs_settings': { |
376 'VCCLCompilerTool': { | 375 'VCCLCompilerTool': { |
377 'Optimization': '2', | 376 'Optimization': '2', |
378 'InlineFunctionExpansion': '2', | 377 'InlineFunctionExpansion': '2', |
379 'EnableIntrinsicFunctions': 'true', | 378 'EnableIntrinsicFunctions': 'true', |
380 'FavorSizeOrSpeed': '0', | 379 'FavorSizeOrSpeed': '0', |
381 'OmitFramePointers': 'true', | |
382 'StringPooling': 'true', | 380 'StringPooling': 'true', |
383 | 381 |
384 'conditions': [ | 382 'conditions': [ |
385 ['OS=="win" and component=="shared_library"', { | 383 ['OS=="win" and component=="shared_library"', { |
386 'RuntimeLibrary': '2', #/MD | 384 'RuntimeLibrary': '2', #/MD |
387 }, { | 385 }, { |
388 'RuntimeLibrary': '0', #/MT | 386 'RuntimeLibrary': '0', #/MT |
389 }], | 387 }], |
390 ], | 388 ], |
391 }, | 389 }, |
392 'VCLinkerTool': { | 390 'VCLinkerTool': { |
393 'LinkIncremental': '1', | 391 'LinkIncremental': '1', |
394 'OptimizeReferences': '2', | 392 'OptimizeReferences': '2', |
395 'EnableCOMDATFolding': '2', | 393 'EnableCOMDATFolding': '2', |
396 }, | 394 }, |
397 }, | 395 }, |
398 }], # OS=="win" | 396 }], # OS=="win" |
399 ], # conditions | 397 ], # conditions |
400 }, # Release | 398 }, # Release |
401 }, # configurations | 399 }, # configurations |
402 }, # target_defaults | 400 }, # target_defaults |
403 } | 401 } |
OLD | NEW |