OLD | NEW |
1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 | 658 |
659 OS_GUESS = utils.GuessOS() | 659 OS_GUESS = utils.GuessOS() |
660 TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS) | 660 TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS) |
661 ARCH_GUESS = utils.GuessArchitecture() | 661 ARCH_GUESS = utils.GuessArchitecture() |
662 | 662 |
663 | 663 |
664 SIMPLE_OPTIONS = { | 664 SIMPLE_OPTIONS = { |
665 'toolchain': { | 665 'toolchain': { |
666 'values': ['gcc', 'msvc'], | 666 'values': ['gcc', 'msvc'], |
667 'default': TOOLCHAIN_GUESS, | 667 'default': TOOLCHAIN_GUESS, |
668 'help': 'the toolchain to use (' + TOOLCHAIN_GUESS + ')' | 668 'help': 'the toolchain to use (%s)' % TOOLCHAIN_GUESS |
669 }, | 669 }, |
670 'os': { | 670 'os': { |
671 'values': ['freebsd', 'linux', 'macos', 'win32', 'android', 'openbsd', 'sola
ris'], | 671 'values': ['freebsd', 'linux', 'macos', 'win32', 'android', 'openbsd', 'sola
ris'], |
672 'default': OS_GUESS, | 672 'default': OS_GUESS, |
673 'help': 'the os to build for (' + OS_GUESS + ')' | 673 'help': 'the os to build for (%s)' % OS_GUESS |
674 }, | 674 }, |
675 'arch': { | 675 'arch': { |
676 'values':['arm', 'ia32', 'x64', 'mips'], | 676 'values':['arm', 'ia32', 'x64', 'mips'], |
677 'default': ARCH_GUESS, | 677 'default': ARCH_GUESS, |
678 'help': 'the architecture to build for (' + ARCH_GUESS + ')' | 678 'help': 'the architecture to build for (%s)' % ARCH_GUESS |
679 }, | 679 }, |
680 'regexp': { | 680 'regexp': { |
681 'values': ['native', 'interpreted'], | 681 'values': ['native', 'interpreted'], |
682 'default': 'native', | 682 'default': 'native', |
683 'help': 'Whether to use native or interpreted regexp implementation' | 683 'help': 'Whether to use native or interpreted regexp implementation' |
684 }, | 684 }, |
685 'snapshot': { | 685 'snapshot': { |
686 'values': ['on', 'off', 'nobuild'], | 686 'values': ['on', 'off', 'nobuild'], |
687 'default': 'off', | 687 'default': 'off', |
688 'help': 'build using snapshots for faster start-up' | 688 'help': 'build using snapshots for faster start-up' |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 # version of scons. Also, there's a bug in some revisions that | 1139 # version of scons. Also, there's a bug in some revisions that |
1140 # doesn't allow this flag to be set, so we swallow any exceptions. | 1140 # doesn't allow this flag to be set, so we swallow any exceptions. |
1141 # Lovely. | 1141 # Lovely. |
1142 try: | 1142 try: |
1143 SetOption('warn', 'no-deprecated') | 1143 SetOption('warn', 'no-deprecated') |
1144 except: | 1144 except: |
1145 pass | 1145 pass |
1146 | 1146 |
1147 | 1147 |
1148 Build() | 1148 Build() |
OLD | NEW |