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

Side by Side Diff: build/standalone.gypi

Issue 1820583002: Use C++11 / gnu++11, not 0x (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment; more in v8config.h Created 4 years, 9 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
« no previous file with comments | « .ycm_extra_conf.py ('k') | include/v8config.h » ('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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 '-pthread', 694 '-pthread',
695 '-pedantic', 695 '-pedantic',
696 # Don't warn about the "struct foo f = {0};" initialization pattern. 696 # Don't warn about the "struct foo f = {0};" initialization pattern.
697 '-Wno-missing-field-initializers', 697 '-Wno-missing-field-initializers',
698 '-Wno-gnu-zero-variadic-macro-arguments', 698 '-Wno-gnu-zero-variadic-macro-arguments',
699 ], 699 ],
700 'cflags_cc': [ 700 'cflags_cc': [
701 '-Wnon-virtual-dtor', 701 '-Wnon-virtual-dtor',
702 '-fno-exceptions', 702 '-fno-exceptions',
703 '-fno-rtti', 703 '-fno-rtti',
704 '-std=gnu++0x', 704 '-std=gnu++11',
705 ], 705 ],
706 'ldflags': [ '-pthread', ], 706 'ldflags': [ '-pthread', ],
707 'conditions': [ 707 'conditions': [
708 # Don't warn about TRACE_EVENT_* macros with zero arguments passed to 708 # Don't warn about TRACE_EVENT_* macros with zero arguments passed to
709 # ##__VA_ARGS__. C99 strict mode prohibits having zero variadic macro 709 # ##__VA_ARGS__. C99 strict mode prohibits having zero variadic macro
710 # arguments in gcc. 710 # arguments in gcc.
711 [ 'clang==0', { 711 [ 'clang==0', {
712 'cflags!' : [ 712 'cflags!' : [
713 '-pedantic' , 713 '-pedantic' ,
714 # Don't warn about unrecognized command line option. 714 # Don't warn about unrecognized command line option.
(...skipping 29 matching lines...) Expand all
744 '<(werror)', 744 '<(werror)',
745 '-Wno-unused-parameter', 745 '-Wno-unused-parameter',
746 # Don't warn about the "struct foo f = {0};" initialization pattern. 746 # Don't warn about the "struct foo f = {0};" initialization pattern.
747 '-Wno-missing-field-initializers', 747 '-Wno-missing-field-initializers',
748 '-Wno-gnu-zero-variadic-macro-arguments', 748 '-Wno-gnu-zero-variadic-macro-arguments',
749 ], 749 ],
750 'cflags_cc': [ 750 'cflags_cc': [
751 '-Wnon-virtual-dtor', 751 '-Wnon-virtual-dtor',
752 '-fno-exceptions', 752 '-fno-exceptions',
753 '-fno-rtti', 753 '-fno-rtti',
754 '-std=gnu++0x', 754 '-std=gnu++11',
755 ], 755 ],
756 'conditions': [ 756 'conditions': [
757 [ 'visibility=="hidden"', { 757 [ 'visibility=="hidden"', {
758 'cflags': [ '-fvisibility=hidden' ], 758 'cflags': [ '-fvisibility=hidden' ],
759 }], 759 }],
760 [ 'component=="shared_library"', { 760 [ 'component=="shared_library"', {
761 'cflags': [ '-fPIC' ], 761 'cflags': [ '-fPIC' ],
762 }], 762 }],
763 ], 763 ],
764 'target_conditions': [ 764 'target_conditions': [
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 }, 974 },
975 'conditions': [ 975 'conditions': [
976 ['werror==""', { 976 ['werror==""', {
977 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, 977 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'},
978 }, { 978 }, {
979 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, 979 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'},
980 }], 980 }],
981 ['clang==1', { 981 ['clang==1', {
982 'xcode_settings': { 982 'xcode_settings': {
983 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 983 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
984 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x 984 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', # -std=c++11
985 }, 985 },
986 'conditions': [ 986 'conditions': [
987 ['v8_target_arch=="x64" or v8_target_arch=="arm64" \ 987 ['v8_target_arch=="x64" or v8_target_arch=="arm64" \
988 or v8_target_arch=="mips64el"', { 988 or v8_target_arch=="mips64el"', {
989 'xcode_settings': {'WARNING_CFLAGS': ['-Wshorten-64-to-32']}, 989 'xcode_settings': {'WARNING_CFLAGS': ['-Wshorten-64-to-32']},
990 }], 990 }],
991 ], 991 ],
992 }], 992 }],
993 ], 993 ],
994 'target_conditions': [ 994 'target_conditions': [
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 '-fsanitize=cfi-vcall', 1386 '-fsanitize=cfi-vcall',
1387 '-fsanitize=cfi-derived-cast', 1387 '-fsanitize=cfi-derived-cast',
1388 '-fsanitize=cfi-unrelated-cast', 1388 '-fsanitize=cfi-unrelated-cast',
1389 ], 1389 ],
1390 }], 1390 }],
1391 ], 1391 ],
1392 }, 1392 },
1393 }], 1393 }],
1394 ], 1394 ],
1395 } 1395 }
OLDNEW
« no previous file with comments | « .ycm_extra_conf.py ('k') | include/v8config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698