| OLD | NEW |
| 1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 'CPPDEFINES': ['V8_FAST_TLS'], | 82 'CPPDEFINES': ['V8_FAST_TLS'], |
| 83 }, | 83 }, |
| 84 'liveobjectlist:on': { | 84 'liveobjectlist:on': { |
| 85 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', | 85 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', |
| 86 'LIVE_OBJECT_LIST', 'OBJECT_PRINT'], | 86 'LIVE_OBJECT_LIST', 'OBJECT_PRINT'], |
| 87 } | 87 } |
| 88 }, | 88 }, |
| 89 'gcc': { | 89 'gcc': { |
| 90 'all': { | 90 'all': { |
| 91 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 91 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 92 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 92 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 93 }, | 93 }, |
| 94 'visibility:hidden': { | 94 'visibility:hidden': { |
| 95 # Use visibility=default to disable this. | 95 # Use visibility=default to disable this. |
| 96 'CXXFLAGS': ['-fvisibility=hidden'] | 96 'CXXFLAGS': ['-fvisibility=hidden'] |
| 97 }, | 97 }, |
| 98 'strictaliasing:off': { | 98 'strictaliasing:off': { |
| 99 'CCFLAGS': ['-fno-strict-aliasing'] | 99 'CCFLAGS': ['-fno-strict-aliasing'] |
| 100 }, | 100 }, |
| 101 'mode:debug': { | 101 'mode:debug': { |
| 102 'CCFLAGS': ['-g', '-O0'], | 102 'CCFLAGS': ['-g', '-O0'], |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 'gdbjit:on': { | 223 'gdbjit:on': { |
| 224 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] | 224 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] |
| 225 }, | 225 }, |
| 226 'compress_startup_data:bz2': { | 226 'compress_startup_data:bz2': { |
| 227 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'] | 227 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'] |
| 228 } | 228 } |
| 229 }, | 229 }, |
| 230 'msvc': { | 230 'msvc': { |
| 231 'all': { | 231 'all': { |
| 232 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 232 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 233 'CXXFLAGS': ['$CCFLAGS', '/GR-', '/Gy'], | 233 'CXXFLAGS': ['/GR-', '/Gy'], |
| 234 'CPPDEFINES': ['WIN32'], | 234 'CPPDEFINES': ['WIN32'], |
| 235 'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'], | 235 'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'], |
| 236 'CCPDBFLAGS': ['/Zi'] | 236 'CCPDBFLAGS': ['/Zi'] |
| 237 }, | 237 }, |
| 238 'verbose:off': { | 238 'verbose:off': { |
| 239 'DIALECTFLAGS': ['/nologo'], | 239 'DIALECTFLAGS': ['/nologo'], |
| 240 'ARFLAGS': ['/NOLOGO'] | 240 'ARFLAGS': ['/NOLOGO'] |
| 241 }, | 241 }, |
| 242 'arch:ia32': { | 242 'arch:ia32': { |
| 243 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', '_USE_32BIT_TIME_T'], | 243 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', '_USE_32BIT_TIME_T'], |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 'all': { | 401 'all': { |
| 402 'CPPPATH': [join(root_dir, 'src')], | 402 'CPPPATH': [join(root_dir, 'src')], |
| 403 'library:shared': { | 403 'library:shared': { |
| 404 'CPPDEFINES': ['USING_V8_SHARED'] | 404 'CPPDEFINES': ['USING_V8_SHARED'] |
| 405 }, | 405 }, |
| 406 }, | 406 }, |
| 407 'gcc': { | 407 'gcc': { |
| 408 'all': { | 408 'all': { |
| 409 'LIBPATH': [abspath('.')], | 409 'LIBPATH': [abspath('.')], |
| 410 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 410 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 411 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 411 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 412 'LINKFLAGS': ['$CCFLAGS'], | 412 'LINKFLAGS': ['$CCFLAGS'], |
| 413 }, | 413 }, |
| 414 'os:linux': { | 414 'os:linux': { |
| 415 'LIBS': ['pthread'], | 415 'LIBS': ['pthread'], |
| 416 }, | 416 }, |
| 417 'os:macos': { | 417 'os:macos': { |
| 418 'LIBS': ['pthread'], | 418 'LIBS': ['pthread'], |
| 419 }, | 419 }, |
| 420 'os:freebsd': { | 420 'os:freebsd': { |
| 421 'LIBS': ['execinfo', 'pthread'] | 421 'LIBS': ['execinfo', 'pthread'] |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 'all': { | 454 'all': { |
| 455 'CPPPATH': [join(abspath('.'), 'include')], | 455 'CPPPATH': [join(abspath('.'), 'include')], |
| 456 'library:shared': { | 456 'library:shared': { |
| 457 'CPPDEFINES': ['USING_V8_SHARED'] | 457 'CPPDEFINES': ['USING_V8_SHARED'] |
| 458 }, | 458 }, |
| 459 }, | 459 }, |
| 460 'gcc': { | 460 'gcc': { |
| 461 'all': { | 461 'all': { |
| 462 'LIBPATH': ['.'], | 462 'LIBPATH': ['.'], |
| 463 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 463 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 464 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 464 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 465 'LINKFLAGS': ['$CCFLAGS'], | 465 'LINKFLAGS': ['$CCFLAGS'], |
| 466 }, | 466 }, |
| 467 'os:linux': { | 467 'os:linux': { |
| 468 'LIBS': ['pthread'], | 468 'LIBS': ['pthread'], |
| 469 }, | 469 }, |
| 470 'os:macos': { | 470 'os:macos': { |
| 471 'LIBS': ['pthread'], | 471 'LIBS': ['pthread'], |
| 472 }, | 472 }, |
| 473 'os:freebsd': { | 473 'os:freebsd': { |
| 474 'LIBPATH' : ['/usr/local/lib'], | 474 'LIBPATH' : ['/usr/local/lib'], |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 'all': { | 630 'all': { |
| 631 'CPPPATH': [join(abspath('.'), 'include'), join(abspath('.'), 'src')], | 631 'CPPPATH': [join(abspath('.'), 'include'), join(abspath('.'), 'src')], |
| 632 'library:shared': { | 632 'library:shared': { |
| 633 'CPPDEFINES': ['USING_V8_SHARED'] | 633 'CPPDEFINES': ['USING_V8_SHARED'] |
| 634 }, | 634 }, |
| 635 }, | 635 }, |
| 636 'gcc': { | 636 'gcc': { |
| 637 'all': { | 637 'all': { |
| 638 'LIBPATH': ['.'], | 638 'LIBPATH': ['.'], |
| 639 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 639 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 640 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 640 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 641 'LINKFLAGS': ['$CCFLAGS'], | 641 'LINKFLAGS': ['$CCFLAGS'], |
| 642 }, | 642 }, |
| 643 'os:win32': { | 643 'os:win32': { |
| 644 'LIBS': ['winmm', 'ws2_32'] | 644 'LIBS': ['winmm', 'ws2_32'] |
| 645 }, | 645 }, |
| 646 'arch:arm': { | 646 'arch:arm': { |
| 647 'LINKFLAGS': ARM_LINK_FLAGS, | 647 'LINKFLAGS': ARM_LINK_FLAGS, |
| 648 'armeabi:soft' : { | 648 'armeabi:soft' : { |
| 649 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], | 649 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], |
| 650 'simulator:none': { | 650 'simulator:none': { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 } | 778 } |
| 779 } | 779 } |
| 780 } | 780 } |
| 781 } | 781 } |
| 782 | 782 |
| 783 | 783 |
| 784 D8_FLAGS = { | 784 D8_FLAGS = { |
| 785 'gcc': { | 785 'gcc': { |
| 786 'all': { | 786 'all': { |
| 787 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 787 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 788 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 788 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 789 'LINKFLAGS': ['$CCFLAGS'], | 789 'LINKFLAGS': ['$CCFLAGS'], |
| 790 }, | 790 }, |
| 791 'console:readline': { | 791 'console:readline': { |
| 792 'LIBS': ['readline'] | 792 'LIBS': ['readline'] |
| 793 }, | 793 }, |
| 794 'os:linux': { | 794 'os:linux': { |
| 795 'LIBS': ['pthread'], | 795 'LIBS': ['pthread'], |
| 796 }, | 796 }, |
| 797 'os:macos': { | 797 'os:macos': { |
| 798 'LIBS': ['pthread'], | 798 'LIBS': ['pthread'], |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1483 # version of scons. Also, there's a bug in some revisions that | 1483 # version of scons. Also, there's a bug in some revisions that |
| 1484 # doesn't allow this flag to be set, so we swallow any exceptions. | 1484 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1485 # Lovely. | 1485 # Lovely. |
| 1486 try: | 1486 try: |
| 1487 SetOption('warn', 'no-deprecated') | 1487 SetOption('warn', 'no-deprecated') |
| 1488 except: | 1488 except: |
| 1489 pass | 1489 pass |
| 1490 | 1490 |
| 1491 | 1491 |
| 1492 Build() | 1492 Build() |
| OLD | NEW |