Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, 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 # The purpose of this file and others in this directory is to simulate | 5 # The purpose of this file and others in this directory is to simulate |
| 6 # the Chromium build enviroment. This file is included in all GYP | 6 # the Chromium build enviroment. This file is included in all GYP |
| 7 # files that are used by the Dart project. This includes V8's GYP | 7 # files that are used by the Dart project. This includes V8's GYP |
| 8 # files. | 8 # files. |
| 9 | 9 |
| 10 # READ BEFORE EDITING: | 10 # READ BEFORE EDITING: |
| 11 # Do not add Dart VM specific configuration to this file. Instead, | 11 # Do not add Dart VM specific configuration to this file. Instead, |
| 12 # modify runtime/tools/gyp/runtime-configurations.gypi. | 12 # modify runtime/tools/gyp/runtime-configurations.gypi. |
| 13 | 13 |
| 14 { | 14 { |
| 15 'target_defaults': { | 15 'target_defaults': { |
| 16 'configurations': { | 16 'configurations': { |
| 17 'Dart_Base': { | 17 'Dart_Base': { |
| 18 'xcode_settings': { | 18 'xcode_settings': { |
| 19 # To switch to the LLVM based backend change the two lines below. | 19 # To switch to the LLVM based backend change the two lines below. |
| 20 #'GCC_VERSION': 'com.apple.compilers.llvmgcc42', | 20 'GCC_VERSION': 'com.apple.compilers.llvmgcc42', |
| 21 'GCC_VERSION': '4.2', | 21 # 'GCC_VERSION': '4.2', |
|
Søren Gjesse
2012/09/28 09:17:31
Why these changes? If compiling NSS require other
Mads Ager (google)
2012/09/28 12:03:57
My guess: Bill probably updated to xcode 4?
Bill Hesse
2012/10/31 16:33:29
Removed.
On 2012/09/28 09:17:31, Søren Gjesse wro
| |
| 22 'GCC_C_LANGUAGE_STANDARD': 'ansi', | 22 # 'GCC_C_LANGUAGE_STANDARD': 'ansi', |
| 23 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | 23 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions |
| 24 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | 24 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti |
| 25 'GCC_DEBUGGING_SYMBOLS': 'default', # -g | 25 'GCC_DEBUGGING_SYMBOLS': 'default', # -g |
| 26 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols | 26 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols |
| 27 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 27 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
| 28 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden | 28 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden |
| 29 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor | 29 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor |
| 30 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 30 # 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
| 31 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror | |
| 31 'WARNING_CFLAGS': [ | 32 'WARNING_CFLAGS': [ |
| 32 '<@(common_gcc_warning_flags)', | 33 '<@(common_gcc_warning_flags)', |
| 33 '-Wtrigraphs', # Disable Xcode default. | 34 '-Wtrigraphs', # Disable Xcode default. |
| 34 '-Wreturn-type', | 35 '-Wreturn-type', |
| 35 '-Werror=return-type', | 36 '-Werror=return-type', |
| 36 ], | 37 ], |
| 37 | 38 |
| 38 # Generate PIC code as Chrome is switching to this. | 39 # Generate PIC code as Chrome is switching to this. |
| 39 'GCC_DYNAMIC_NO_PIC': 'NO', | 40 'GCC_DYNAMIC_NO_PIC': 'NO', |
| 40 | 41 |
| 41 # When searching for header files, do not search | 42 # When searching for header files, do not search |
| 42 # subdirectories. Without this option, vm/assert.h conflicts | 43 # subdirectories. Without this option, vm/assert.h conflicts |
| 43 # with the system header assert.h. Apple also recommend | 44 # with the system header assert.h. Apple also recommend |
| 44 # setting this to NO. | 45 # setting this to NO. |
| 45 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 46 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
| 46 | 47 |
| 47 # Attempt to remove compiler options that Xcode adds by default. | 48 # Attempt to remove compiler options that Xcode adds by default. |
| 48 'GCC_CW_ASM_SYNTAX': 'NO', # Remove -fasm-blocks. | 49 'GCC_CW_ASM_SYNTAX': 'NO', # Remove -fasm-blocks. |
| 49 | 50 |
| 50 'GCC_ENABLE_PASCAL_STRINGS': 'NO', | 51 'GCC_ENABLE_PASCAL_STRINGS': 'NO', |
| 51 'GCC_ENABLE_TRIGRAPHS': 'NO', | 52 'GCC_ENABLE_TRIGRAPHS': 'NO', |
| 52 'PREBINDING': 'NO', | 53 'PREBINDING': 'NO', |
| 53 }, | 54 }, |
| 54 }, | 55 }, |
| 55 }, | 56 }, |
| 56 }, | 57 }, |
| 57 } | 58 } |
| OLD | NEW |