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. | 7 # files that are used by the Dart project. |
8 | 8 |
9 # READ BEFORE EDITING: | 9 # READ BEFORE EDITING: |
10 # Do not add Dart VM specific configuration to this file. Instead, | 10 # Do not add Dart VM specific configuration to this file. Instead, |
(...skipping 16 matching lines...) Expand all Loading... |
27 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols | 27 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES', # Do not strip symbols |
28 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 28 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
29 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden | 29 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', # -fvisibility-inlines-hidden |
30 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor | 30 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor |
31 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 31 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
32 'WARNING_CFLAGS': [ | 32 'WARNING_CFLAGS': [ |
33 '<@(common_gcc_warning_flags)', | 33 '<@(common_gcc_warning_flags)', |
34 '-Wtrigraphs', # Disable Xcode default. | 34 '-Wtrigraphs', # Disable Xcode default. |
35 '-Wreturn-type', | 35 '-Wreturn-type', |
36 '-Werror=return-type', | 36 '-Werror=return-type', |
| 37 # TODO(15922): Enable this flag by default. |
| 38 # '-Wshorten-64-to-32', |
37 ], | 39 ], |
38 | 40 |
39 # Generate PIC code as Chrome is switching to this. | 41 # Generate PIC code as Chrome is switching to this. |
40 'GCC_DYNAMIC_NO_PIC': 'NO', | 42 'GCC_DYNAMIC_NO_PIC': 'NO', |
41 | 43 |
42 # When searching for header files, do not search | 44 # When searching for header files, do not search |
43 # subdirectories. Without this option, vm/assert.h conflicts | 45 # subdirectories. Without this option, vm/assert.h conflicts |
44 # with the system header assert.h. Apple also recommend | 46 # with the system header assert.h. Apple also recommend |
45 # setting this to NO. | 47 # setting this to NO. |
46 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 48 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
(...skipping 20 matching lines...) Expand all Loading... |
67 }, | 69 }, |
68 'Dart_Macos_Debug': { | 70 'Dart_Macos_Debug': { |
69 'abstract': 1, | 71 'abstract': 1, |
70 }, | 72 }, |
71 'Dart_Macos_Release': { | 73 'Dart_Macos_Release': { |
72 'abstract': 1, | 74 'abstract': 1, |
73 }, | 75 }, |
74 }, | 76 }, |
75 }, | 77 }, |
76 } | 78 } |
OLD | NEW |