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

Side by Side Diff: build/standalone.gypi

Issue 440663002: Enable C++11. Synch toolchains with Chrome. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | test/cctest/test-utils.cc » ('j') | 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 'THREAD_SANITIZER', 207 'THREAD_SANITIZER',
208 ], 208 ],
209 }, 209 },
210 }], 210 }],
211 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 211 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
212 or OS=="netbsd"', { 212 or OS=="netbsd"', {
213 'target_defaults': { 213 'target_defaults': {
214 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 214 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
215 '-Wno-long-long', '-pthread', '-fno-exceptions', 215 '-Wno-long-long', '-pthread', '-fno-exceptions',
216 '-pedantic' ], 216 '-pedantic' ],
217 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], 217 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=c++0x' ],
jochen (gone - plz use gerrit) 2014/08/04 09:02:36 why not c++11?
218 'ldflags': [ '-pthread', ], 218 'ldflags': [ '-pthread', ],
219 'conditions': [ 219 'conditions': [
220 [ 'OS=="linux"', {
221 'cflags': [ '-ansi' ],
222 }],
223 [ 'visibility=="hidden" and v8_enable_backtrace==0', { 220 [ 'visibility=="hidden" and v8_enable_backtrace==0', {
224 'cflags': [ '-fvisibility=hidden' ], 221 'cflags': [ '-fvisibility=hidden' ],
225 }], 222 }],
226 [ 'component=="shared_library"', { 223 [ 'component=="shared_library"', {
227 'cflags': [ '-fPIC', ], 224 'cflags': [ '-fPIC', ],
228 }], 225 }],
229 ], 226 ],
230 }, 227 },
231 }], 228 }],
232 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" 229 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"
233 # or OS=="netbsd"' 230 # or OS=="netbsd"'
234 ['OS=="qnx"', { 231 ['OS=="qnx"', {
235 'target_defaults': { 232 'target_defaults': {
236 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 233 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
237 '-fno-exceptions' ], 234 '-fno-exceptions' ],
238 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], 235 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=c++0x' ],
239 'conditions': [ 236 'conditions': [
240 [ 'visibility=="hidden"', { 237 [ 'visibility=="hidden"', {
241 'cflags': [ '-fvisibility=hidden' ], 238 'cflags': [ '-fvisibility=hidden' ],
242 }], 239 }],
243 [ 'component=="shared_library"', { 240 [ 'component=="shared_library"', {
244 'cflags': [ '-fPIC' ], 241 'cflags': [ '-fPIC' ],
245 }], 242 }],
246 ], 243 ],
247 'target_conditions': [ 244 'target_conditions': [
248 [ '_toolset=="host" and host_os=="linux"', { 245 [ '_toolset=="host" and host_os=="linux"', {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 }, 323 },
327 }, 324 },
328 }], # OS=="win" 325 }], # OS=="win"
329 ['OS=="mac"', { 326 ['OS=="mac"', {
330 'xcode_settings': { 327 'xcode_settings': {
331 'SYMROOT': '<(DEPTH)/xcodebuild', 328 'SYMROOT': '<(DEPTH)/xcodebuild',
332 }, 329 },
333 'target_defaults': { 330 'target_defaults': {
334 'xcode_settings': { 331 'xcode_settings': {
335 'ALWAYS_SEARCH_USER_PATHS': 'NO', 332 'ALWAYS_SEARCH_USER_PATHS': 'NO',
336 'GCC_C_LANGUAGE_STANDARD': 'ansi', # -ansi
337 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks 333 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
338 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic 334 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
339 # (Equivalent to -fPIC) 335 # (Equivalent to -fPIC)
340 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions 336 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
341 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti 337 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
342 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings 338 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
343 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden 339 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
344 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', 340 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
345 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden 341 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
346 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics 342 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
(...skipping 15 matching lines...) Expand all
362 }, 358 },
363 'conditions': [ 359 'conditions': [
364 ['werror==""', { 360 ['werror==""', {
365 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, 361 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'},
366 }, { 362 }, {
367 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, 363 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'},
368 }], 364 }],
369 ['clang==1', { 365 ['clang==1', {
370 'xcode_settings': { 366 'xcode_settings': {
371 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 367 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
372 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11 368 'CLANG_CXX_LANGUAGE_STANDARD': 'c++0x', # -std=c++0x
373 }, 369 },
374 }], 370 }],
375 ], 371 ],
376 'target_conditions': [ 372 'target_conditions': [
377 ['_type!="static_library"', { 373 ['_type!="static_library"', {
378 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 374 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
379 }], 375 }],
380 ], # target_conditions 376 ], # target_conditions
381 }, # target_defaults 377 }, # target_defaults
382 }], # OS=="mac" 378 }], # OS=="mac"
383 ], 379 ],
384 } 380 }
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698