| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'target_defaults': { | 6 'target_defaults': { |
| 7 'configurations': { | 7 'configurations': { |
| 8 'Dart_Base': { | 8 'Dart_Base': { |
| 9 'xcode_settings': { | 9 'xcode_settings': { |
| 10 # To switch to the LLVM based backend change the two lines below. | 10 # To switch to the LLVM based backend change the two lines below. |
| 11 #'GCC_VERSION': 'com.apple.compilers.llvmgcc42', | 11 #'GCC_VERSION': 'com.apple.compilers.llvmgcc42', |
| 12 'GCC_VERSION': '4.2', | 12 'GCC_VERSION': '4.2', |
| 13 'GCC_C_LANGUAGE_STANDARD': 'ansi', | 13 'GCC_C_LANGUAGE_STANDARD': 'ansi', |
| 14 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 14 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
| 15 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 15 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
| 16 'GCC_DEBUGGING_SYMBOLS': 'default', # -g | 16 'GCC_DEBUGGING_SYMBOLS': 'default', # -g |
| 17 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols | 17 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols |
| 18 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 18 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 19 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden | 19 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden |
| 20 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor | 20 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor |
| 21 # TODO(v8-team): Fix V8 build. | 21 # TODO(v8-team): Fix V8 build. |
| 22 #'GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS': 'YES', # -Woverloaded-virtual | 22 #'GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS': 'YES', # -Woverloaded-virtual |
| 23 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 23 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
| 24 'WARNING_CFLAGS': [ | 24 'WARNING_CFLAGS': [ |
| 25 '<@(common_gcc_warning_flags)', | 25 '<@(common_gcc_warning_flags)', |
| 26 '-Wtrigraphs', # Disable Xcode default. | 26 '-Wtrigraphs', # Disable Xcode default. |
| 27 '-Wreturn-type', |
| 28 '-Werror=return-type', |
| 27 ], | 29 ], |
| 28 | 30 |
| 29 # Generate PIC code as Chrome is switching to this. | 31 # Generate PIC code as Chrome is switching to this. |
| 30 'GCC_DYNAMIC_NO_PIC': 'NO', | 32 'GCC_DYNAMIC_NO_PIC': 'NO', |
| 31 | 33 |
| 32 # When searching for header files, do not search | 34 # When searching for header files, do not search |
| 33 # subdirectories. Without this option, vm/assert.h conflicts | 35 # subdirectories. Without this option, vm/assert.h conflicts |
| 34 # with the system header assert.h. Apple also recommend | 36 # with the system header assert.h. Apple also recommend |
| 35 # setting this to NO. | 37 # setting this to NO. |
| 36 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 38 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 }, | 72 }, |
| 71 | 73 |
| 72 'Dart_Release': { | 74 'Dart_Release': { |
| 73 'xcode_settings': { | 75 'xcode_settings': { |
| 74 'GCC_OPTIMIZATION_LEVEL': '3', | 76 'GCC_OPTIMIZATION_LEVEL': '3', |
| 75 }, | 77 }, |
| 76 }, | 78 }, |
| 77 }, | 79 }, |
| 78 }, | 80 }, |
| 79 } | 81 } |
| OLD | NEW |