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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 CCTEST_EXTRA_FLAGS = { | 391 CCTEST_EXTRA_FLAGS = { |
392 'all': { | 392 'all': { |
393 'CPPPATH': [join(root_dir, 'src')], | 393 'CPPPATH': [join(root_dir, 'src')], |
394 'library:shared': { | 394 'library:shared': { |
395 'CPPDEFINES': ['USING_V8_SHARED'] | 395 'CPPDEFINES': ['USING_V8_SHARED'] |
396 }, | 396 }, |
397 }, | 397 }, |
398 'gcc': { | 398 'gcc': { |
399 'all': { | 399 'all': { |
400 'LIBPATH': [abspath('.')], | 400 'LIBPATH': [abspath('.')], |
401 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS', | 401 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
402 '-Wno-unused-but-set-variable'], | |
403 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], | 402 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
404 'LINKFLAGS': ['$CCFLAGS'], | 403 'LINKFLAGS': ['$CCFLAGS'], |
405 }, | 404 }, |
406 'os:linux': { | 405 'os:linux': { |
407 'LIBS': ['pthread'], | 406 'LIBS': ['pthread'], |
| 407 'CCFLAGS': ['-Wno-unused-but-set-variable'], |
408 }, | 408 }, |
409 'os:macos': { | 409 'os:macos': { |
410 'LIBS': ['pthread'], | 410 'LIBS': ['pthread'], |
411 }, | 411 }, |
412 'os:freebsd': { | 412 'os:freebsd': { |
413 'LIBS': ['execinfo', 'pthread'] | 413 'LIBS': ['execinfo', 'pthread'] |
414 }, | 414 }, |
415 'os:solaris': { | 415 'os:solaris': { |
416 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], | 416 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], |
417 'LINKFLAGS': ['-mt'] | 417 'LINKFLAGS': ['-mt'] |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 # version of scons. Also, there's a bug in some revisions that | 1476 # version of scons. Also, there's a bug in some revisions that |
1477 # doesn't allow this flag to be set, so we swallow any exceptions. | 1477 # doesn't allow this flag to be set, so we swallow any exceptions. |
1478 # Lovely. | 1478 # Lovely. |
1479 try: | 1479 try: |
1480 SetOption('warn', 'no-deprecated') | 1480 SetOption('warn', 'no-deprecated') |
1481 except: | 1481 except: |
1482 pass | 1482 pass |
1483 | 1483 |
1484 | 1484 |
1485 Build() | 1485 Build() |
OLD | NEW |