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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 '-Wno-long-long', | 383 '-Wno-long-long', |
384 '-pthread', | 384 '-pthread', |
385 '-fno-exceptions', | 385 '-fno-exceptions', |
386 '-pedantic', | 386 '-pedantic', |
387 # Don't warn about the "struct foo f = {0};" initialization pattern. | 387 # Don't warn about the "struct foo f = {0};" initialization pattern. |
388 '-Wno-missing-field-initializers', | 388 '-Wno-missing-field-initializers', |
389 ], | 389 ], |
390 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], | 390 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], |
391 'ldflags': [ '-pthread', ], | 391 'ldflags': [ '-pthread', ], |
392 'conditions': [ | 392 'conditions': [ |
393 # TODO(arm64): It'd be nice to enable this for arm64 as well, | 393 [ 'clang==1 and (v8_target_arch=="x64" or v8_target_arch=="arm64")', { |
394 # but the Assembler requires some serious fixing first. | |
395 [ 'clang==1 and v8_target_arch=="x64"', { | |
396 'cflags': [ '-Wshorten-64-to-32' ], | 394 'cflags': [ '-Wshorten-64-to-32' ], |
397 }], | 395 }], |
398 [ 'host_arch=="ppc64" and OS!="aix"', { | 396 [ 'host_arch=="ppc64" and OS!="aix"', { |
399 'cflags': [ '-mminimal-toc' ], | 397 'cflags': [ '-mminimal-toc' ], |
400 }], | 398 }], |
401 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 399 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
402 'cflags': [ '-fvisibility=hidden' ], | 400 'cflags': [ '-fvisibility=hidden' ], |
403 }], | 401 }], |
404 [ 'component=="shared_library"', { | 402 [ 'component=="shared_library"', { |
405 'cflags': [ '-fPIC', ], | 403 'cflags': [ '-fPIC', ], |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 634 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
637 'make_global_settings': [ | 635 'make_global_settings': [ |
638 ['CC_wrapper', '<(gomadir)/gomacc'], | 636 ['CC_wrapper', '<(gomadir)/gomacc'], |
639 ['CXX_wrapper', '<(gomadir)/gomacc'], | 637 ['CXX_wrapper', '<(gomadir)/gomacc'], |
640 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 638 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
641 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 639 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
642 ], | 640 ], |
643 }], | 641 }], |
644 ], | 642 ], |
645 } | 643 } |
OLD | NEW |