Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: build/standalone.gypi

Issue 17638009: Move C++ specific flags from C flags to C++ flags (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 'Release': { 91 'Release': {
92 # Xcode insists on this empty entry. 92 # Xcode insists on this empty entry.
93 }, 93 },
94 }, 94 },
95 }, 95 },
96 'conditions': [ 96 'conditions': [
97 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 97 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
98 or OS=="netbsd"', { 98 or OS=="netbsd"', {
99 'target_defaults': { 99 'target_defaults': {
100 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 100 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
101 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', 101 '-pthread', '-fno-exceptions', '-pedantic' ],
102 '-fno-exceptions', '-pedantic' ], 102 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ],
103 'ldflags': [ '-pthread', ], 103 'ldflags': [ '-pthread', ],
104 'conditions': [ 104 'conditions': [
105 [ 'OS=="linux"', { 105 [ 'OS=="linux"', {
106 'cflags': [ '-ansi' ], 106 'cflags': [ '-ansi' ],
107 }], 107 }],
108 [ 'visibility=="hidden" and v8_enable_backtrace==0', { 108 [ 'visibility=="hidden" and v8_enable_backtrace==0', {
109 'cflags': [ '-fvisibility=hidden' ], 109 'cflags': [ '-fvisibility=hidden' ],
110 }], 110 }],
111 [ 'component=="shared_library"', { 111 [ 'component=="shared_library"', {
112 'cflags': [ '-fPIC', ], 112 'cflags': [ '-fPIC', ],
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions 191 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
192 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti 192 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
193 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings 193 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
194 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden 194 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
195 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', 195 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
196 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden 196 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
197 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics 197 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
198 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror 198 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
199 'GCC_VERSION': 'com.apple.compilers.llvmgcc42', 199 'GCC_VERSION': 'com.apple.compilers.llvmgcc42',
200 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof 200 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
201 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor
201 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min 202 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min
202 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', 203 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
203 'PREBINDING': 'NO', # No -Wl,-prebind 204 'PREBINDING': 'NO', # No -Wl,-prebind
204 'SYMROOT': '<(DEPTH)/xcodebuild', 205 'SYMROOT': '<(DEPTH)/xcodebuild',
205 'USE_HEADERMAP': 'NO', 206 'USE_HEADERMAP': 'NO',
206 'OTHER_CFLAGS': [ 207 'OTHER_CFLAGS': [
207 '-fno-strict-aliasing', 208 '-fno-strict-aliasing',
208 ], 209 ],
209 'WARNING_CFLAGS': [ 210 'WARNING_CFLAGS': [
210 '-Wall', 211 '-Wall',
211 '-Wendif-labels', 212 '-Wendif-labels',
212 '-W', 213 '-W',
213 '-Wno-unused-parameter', 214 '-Wno-unused-parameter',
214 '-Wnon-virtual-dtor',
215 ], 215 ],
216 }, 216 },
217 'target_conditions': [ 217 'target_conditions': [
218 ['_type!="static_library"', { 218 ['_type!="static_library"', {
219 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 219 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
220 }], 220 }],
221 ], # target_conditions 221 ], # target_conditions
222 }, # target_defaults 222 }, # target_defaults
223 }], # OS=="mac" 223 }], # OS=="mac"
224 ], 224 ],
225 } 225 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698