| OLD | NEW |
| 1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 'CPPDEFINES': ['_DEBUG', 'ENABLE_DISASSEMBLER', 'DEBUG'], | 153 'CPPDEFINES': ['_DEBUG', 'ENABLE_DISASSEMBLER', 'DEBUG'], |
| 154 'LINKFLAGS': ['/DEBUG'], | 154 'LINKFLAGS': ['/DEBUG'], |
| 155 'msvcrt:static': { | 155 'msvcrt:static': { |
| 156 'CCFLAGS': ['/MTd'] | 156 'CCFLAGS': ['/MTd'] |
| 157 }, | 157 }, |
| 158 'msvcrt:shared': { | 158 'msvcrt:shared': { |
| 159 'CCFLAGS': ['/MDd'] | 159 'CCFLAGS': ['/MDd'] |
| 160 } | 160 } |
| 161 }, | 161 }, |
| 162 'mode:release': { | 162 'mode:release': { |
| 163 'CCFLAGS': ['/O2', '/GL'], | 163 'CCFLAGS': ['/O2'], |
| 164 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF', '/LTCG'], | 164 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], |
| 165 'ARFLAGS': ['/LTCG'], | |
| 166 'msvcrt:static': { | 165 'msvcrt:static': { |
| 167 'CCFLAGS': ['/MT'] | 166 'CCFLAGS': ['/MT'] |
| 168 }, | 167 }, |
| 169 'msvcrt:shared': { | 168 'msvcrt:shared': { |
| 170 'CCFLAGS': ['/MD'] | 169 'CCFLAGS': ['/MD'] |
| 170 }, |
| 171 'msvcltcg:on': { |
| 172 'CCFLAGS': ['/GL'], |
| 173 'LINKFLAGS': ['/LTCG'], |
| 174 'ARFLAGS': ['/LTCG'], |
| 171 } | 175 } |
| 172 }, | 176 }, |
| 173 } | 177 } |
| 174 } | 178 } |
| 175 | 179 |
| 176 | 180 |
| 177 V8_EXTRA_FLAGS = { | 181 V8_EXTRA_FLAGS = { |
| 178 'gcc': { | 182 'gcc': { |
| 179 'all': { | 183 'all': { |
| 180 'CXXFLAGS': [], #['-fvisibility=hidden'], | 184 'CXXFLAGS': [], #['-fvisibility=hidden'], |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 'LIBS': ['winmm', 'ws2_32'] | 357 'LIBS': ['winmm', 'ws2_32'] |
| 354 }, | 358 }, |
| 355 'library:shared': { | 359 'library:shared': { |
| 356 'CPPDEFINES': ['USING_V8_SHARED'] | 360 'CPPDEFINES': ['USING_V8_SHARED'] |
| 357 }, | 361 }, |
| 358 'prof:on': { | 362 'prof:on': { |
| 359 'LINKFLAGS': ['/MAP'] | 363 'LINKFLAGS': ['/MAP'] |
| 360 }, | 364 }, |
| 361 'mode:release': { | 365 'mode:release': { |
| 362 'CCFLAGS': ['/O2'], | 366 'CCFLAGS': ['/O2'], |
| 363 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF', '/LTCG'], | 367 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], |
| 364 'msvcrt:static': { | 368 'msvcrt:static': { |
| 365 'CCFLAGS': ['/MT'] | 369 'CCFLAGS': ['/MT'] |
| 366 }, | 370 }, |
| 367 'msvcrt:shared': { | 371 'msvcrt:shared': { |
| 368 'CCFLAGS': ['/MD'] | 372 'CCFLAGS': ['/MD'] |
| 373 }, |
| 374 'msvcltcg:on': { |
| 375 'CCFLAGS': ['/GL'], |
| 376 'LINKFLAGS': ['/LTCG'], |
| 369 } | 377 } |
| 370 }, | 378 }, |
| 371 'mode:debug': { | 379 'mode:debug': { |
| 372 'CCFLAGS': ['/Od'], | 380 'CCFLAGS': ['/Od'], |
| 373 'LINKFLAGS': ['/DEBUG'], | 381 'LINKFLAGS': ['/DEBUG'], |
| 374 'msvcrt:static': { | 382 'msvcrt:static': { |
| 375 'CCFLAGS': ['/MTd'] | 383 'CCFLAGS': ['/MTd'] |
| 376 }, | 384 }, |
| 377 'msvcrt:shared': { | 385 'msvcrt:shared': { |
| 378 'CCFLAGS': ['/MDd'] | 386 'CCFLAGS': ['/MDd'] |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 'help': 'enable profiling of build target' | 475 'help': 'enable profiling of build target' |
| 468 }, | 476 }, |
| 469 'library': { | 477 'library': { |
| 470 'values': ['static', 'shared'], | 478 'values': ['static', 'shared'], |
| 471 'default': 'static', | 479 'default': 'static', |
| 472 'help': 'the type of library to produce' | 480 'help': 'the type of library to produce' |
| 473 }, | 481 }, |
| 474 'msvcrt': { | 482 'msvcrt': { |
| 475 'values': ['static', 'shared'], | 483 'values': ['static', 'shared'], |
| 476 'default': 'static', | 484 'default': 'static', |
| 477 'help': 'the type of MSVCRT library to use' | 485 'help': 'the type of Microsoft Visual C++ runtime library to use' |
| 486 }, |
| 487 'msvcltcg': { |
| 488 'values': ['on', 'off'], |
| 489 'default': 'on', |
| 490 'help': 'use Microsoft Visual C++ link-time code generation' |
| 478 }, | 491 }, |
| 479 'wordsize': { | 492 'wordsize': { |
| 480 'values': ['64', '32'], | 493 'values': ['64', '32'], |
| 481 'default': WORDSIZE_GUESS, | 494 'default': WORDSIZE_GUESS, |
| 482 'help': 'the word size' | 495 'help': 'the word size' |
| 483 }, | 496 }, |
| 484 'simulator': { | 497 'simulator': { |
| 485 'values': ['arm', 'none'], | 498 'values': ['arm', 'none'], |
| 486 'default': 'none', | 499 'default': 'none', |
| 487 'help': 'build with simulator' | 500 'help': 'build with simulator' |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 # version of scons. Also, there's a bug in some revisions that | 780 # version of scons. Also, there's a bug in some revisions that |
| 768 # doesn't allow this flag to be set, so we swallow any exceptions. | 781 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 769 # Lovely. | 782 # Lovely. |
| 770 try: | 783 try: |
| 771 SetOption('warn', 'no-deprecated') | 784 SetOption('warn', 'no-deprecated') |
| 772 except: | 785 except: |
| 773 pass | 786 pass |
| 774 | 787 |
| 775 | 788 |
| 776 Build() | 789 Build() |
| OLD | NEW |