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

Side by Side Diff: build/toolchain.gypi

Issue 866843003: Contribution of PowerPC port (continuation of 422063005) - AIX Common1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 }], 277 }],
278 ['v8_host_byteorder=="little"', { 278 ['v8_host_byteorder=="little"', {
279 'defines': [ 279 'defines': [
280 'V8_TARGET_ARCH_PPC_LE', 280 'V8_TARGET_ARCH_PPC_LE',
281 ], 281 ],
282 }], 282 }],
283 ['v8_host_byteorder=="big"', { 283 ['v8_host_byteorder=="big"', {
284 'defines': [ 284 'defines': [
285 'V8_TARGET_ARCH_PPC_BE', 285 'V8_TARGET_ARCH_PPC_BE',
286 ], 286 ],
287 'conditions': [
288 ['OS=="aix"', {
289 # Work around AIX ceil, trunc and round oddities.
290 'cflags': [ '-mcpu=power5+ -mfprnd' ],
291 }],
292 ['OS=="aix"', {
293 # Work around AIX assembler popcntb bug.
294 'cflags': [ '-mno-popcntb' ],
295 }],
296 ],
287 }], 297 }],
288 ], 298 ],
289 }], # ppc 299 }], # ppc
290 ['v8_target_arch=="ia32"', { 300 ['v8_target_arch=="ia32"', {
291 'defines': [ 301 'defines': [
292 'V8_TARGET_ARCH_IA32', 302 'V8_TARGET_ARCH_IA32',
293 ], 303 ],
294 }], # v8_target_arch=="ia32" 304 }], # v8_target_arch=="ia32"
295 ['v8_target_arch=="x87"', { 305 ['v8_target_arch=="x87"', {
296 'defines': [ 306 'defines': [
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 [ 'android_webview_build == 1', { 897 [ 'android_webview_build == 1', {
888 'aosp_build_settings': { 898 'aosp_build_settings': {
889 'LOCAL_FDO_SUPPORT': 'true', 899 'LOCAL_FDO_SUPPORT': 'true',
890 }, 900 },
891 }], 901 }],
892 ] 902 ]
893 }], 903 }],
894 ], 904 ],
895 }], 905 }],
896 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 906 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
897 or OS=="netbsd" or OS=="qnx"', { 907 or OS=="netbsd" or OS=="qnx" or OS=="aix"', {
898 'conditions': [ 908 'conditions': [
899 [ 'v8_no_strict_aliasing==1', { 909 [ 'v8_no_strict_aliasing==1', {
900 'cflags': [ '-fno-strict-aliasing' ], 910 'cflags': [ '-fno-strict-aliasing' ],
901 }], 911 }],
902 ], # conditions 912 ], # conditions
903 }], 913 }],
904 ['OS=="solaris"', { 914 ['OS=="solaris"', {
905 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. 915 'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
906 }], 916 }],
907 ['OS=="freebsd" or OS=="openbsd"', { 917 ['OS=="freebsd" or OS=="openbsd"', {
908 'cflags': [ '-I/usr/local/include' ], 918 'cflags': [ '-I/usr/local/include' ],
909 }], 919 }],
910 ['OS=="netbsd"', { 920 ['OS=="netbsd"', {
911 'cflags': [ '-I/usr/pkg/include' ], 921 'cflags': [ '-I/usr/pkg/include' ],
912 }], 922 }],
923 ['OS=="aix"', {
924 'defines': [
925 # Support for malloc(0)
926 '_LINUX_SOURCE_COMPAT=1',
927 '_ALL_SOURCE=1'],
928 'conditions': [
929 [ 'v8_target_arch=="ppc"', {
930 'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ],
931 }],
932 [ 'v8_target_arch=="ppc64"', {
933 'cflags': [ '-maix64' ],
934 'ldflags': [ '-maix64' ],
935 }],
936 ],
937 }],
913 ], # conditions 938 ], # conditions
914 'configurations': { 939 'configurations': {
915 # Abstract configuration for v8_optimized_debug == 0. 940 # Abstract configuration for v8_optimized_debug == 0.
916 'DebugBase0': { 941 'DebugBase0': {
917 'abstract': 1, 942 'abstract': 1,
918 'msvs_settings': { 943 'msvs_settings': {
919 'VCCLCompilerTool': { 944 'VCCLCompilerTool': {
920 'Optimization': '0', 945 'Optimization': '0',
921 'conditions': [ 946 'conditions': [
922 ['component=="shared_library"', { 947 ['component=="shared_library"', {
923 'RuntimeLibrary': '3', # /MDd 948 'RuntimeLibrary': '3', # /MDd
924 }, { 949 }, {
925 'RuntimeLibrary': '1', # /MTd 950 'RuntimeLibrary': '1', # /MTd
926 }], 951 }],
927 ], 952 ],
928 }, 953 },
929 'VCLinkerTool': { 954 'VCLinkerTool': {
930 'LinkIncremental': '2', 955 'LinkIncremental': '2',
931 }, 956 },
932 }, 957 },
933 'variables': { 958 'variables': {
934 'v8_enable_slow_dchecks%': 1, 959 'v8_enable_slow_dchecks%': 1,
935 }, 960 },
936 'conditions': [ 961 'conditions': [
937 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ 962 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
938 OS=="qnx"', { 963 OS=="qnx" or OS=="aix"', {
939 'cflags!': [ 964 'cflags!': [
940 '-O3', 965 '-O3',
941 '-O2', 966 '-O2',
942 '-O1', 967 '-O1',
943 '-Os', 968 '-Os',
944 ], 969 ],
945 'cflags': [ 970 'cflags': [
946 '-fdata-sections', 971 '-fdata-sections',
947 '-ffunction-sections', 972 '-ffunction-sections',
948 ], 973 ],
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 'LinkIncremental': '1', 1007 'LinkIncremental': '1',
983 'OptimizeReferences': '2', 1008 'OptimizeReferences': '2',
984 'EnableCOMDATFolding': '2', 1009 'EnableCOMDATFolding': '2',
985 }, 1010 },
986 }, 1011 },
987 'variables': { 1012 'variables': {
988 'v8_enable_slow_dchecks%': 0, 1013 'v8_enable_slow_dchecks%': 0,
989 }, 1014 },
990 'conditions': [ 1015 'conditions': [
991 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ 1016 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
992 OS=="qnx"', { 1017 OS=="qnx" or OS=="aix"', {
993 'cflags!': [ 1018 'cflags!': [
994 '-O0', 1019 '-O0',
995 '-O1', 1020 '-O1',
996 '-Os', 1021 '-Os',
997 ], 1022 ],
998 'cflags': [ 1023 'cflags': [
999 '-fdata-sections', 1024 '-fdata-sections',
1000 '-ffunction-sections', 1025 '-ffunction-sections',
1001 ], 1026 ],
1002 'conditions': [ 1027 'conditions': [
(...skipping 28 matching lines...) Expand all
1031 'defines': [ 1056 'defines': [
1032 'ENABLE_DISASSEMBLER', 1057 'ENABLE_DISASSEMBLER',
1033 'V8_ENABLE_CHECKS', 1058 'V8_ENABLE_CHECKS',
1034 'OBJECT_PRINT', 1059 'OBJECT_PRINT',
1035 'VERIFY_HEAP', 1060 'VERIFY_HEAP',
1036 'DEBUG', 1061 'DEBUG',
1037 'TRACE_MAPS' 1062 'TRACE_MAPS'
1038 ], 1063 ],
1039 'conditions': [ 1064 'conditions': [
1040 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ 1065 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
1041 OS=="qnx"', { 1066 OS=="qnx" or OS=="aix"', {
1042 'cflags': [ '-Woverloaded-virtual', '<(wno_array_bounds)', ], 1067 'cflags': [ '-Woverloaded-virtual', '<(wno_array_bounds)', ],
1043 }], 1068 }],
1044 ['OS=="linux" and v8_enable_backtrace==1', { 1069 ['OS=="linux" and v8_enable_backtrace==1', {
1045 # Support for backtrace_symbols. 1070 # Support for backtrace_symbols.
1046 'ldflags': [ '-rdynamic' ], 1071 'ldflags': [ '-rdynamic' ],
1047 }], 1072 }],
1073 ['OS=="aix"', {
1074 'ldflags': [ '-Wl,-bbigtoc' ],
1075 }],
1048 ['OS=="android"', { 1076 ['OS=="android"', {
1049 'variables': { 1077 'variables': {
1050 'android_full_debug%': 1, 1078 'android_full_debug%': 1,
1051 }, 1079 },
1052 'conditions': [ 1080 'conditions': [
1053 ['android_full_debug==0', { 1081 ['android_full_debug==0', {
1054 # Disable full debug if we want a faster v8 in a debug build. 1082 # Disable full debug if we want a faster v8 in a debug build.
1055 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG. 1083 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG.
1056 'defines!': [ 1084 'defines!': [
1057 'DEBUG', 1085 'DEBUG',
(...skipping 12 matching lines...) Expand all
1070 }, { 1098 }, {
1071 'inherit_from': ['DebugBase1'], 1099 'inherit_from': ['DebugBase1'],
1072 }], 1100 }],
1073 ], 1101 ],
1074 }, # Debug 1102 }, # Debug
1075 'Release': { 1103 'Release': {
1076 'variables': { 1104 'variables': {
1077 'v8_enable_slow_dchecks%': 0, 1105 'v8_enable_slow_dchecks%': 0,
1078 }, 1106 },
1079 'conditions': [ 1107 'conditions': [
1080 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { 1108 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \
1109 or OS=="aix"', {
1081 'cflags!': [ 1110 'cflags!': [
1082 '-Os', 1111 '-Os',
1083 ], 1112 ],
1084 'cflags': [ 1113 'cflags': [
1085 '-fdata-sections', 1114 '-fdata-sections',
1086 '-ffunction-sections', 1115 '-ffunction-sections',
1087 '<(wno_array_bounds)', 1116 '<(wno_array_bounds)',
1088 ], 1117 ],
1089 'conditions': [ 1118 'conditions': [
1090 # TODO(crbug.com/272548): Avoid -O3 in NaCl 1119 # TODO(crbug.com/272548): Avoid -O3 in NaCl
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 ['v8_enable_slow_dchecks==1', { 1176 ['v8_enable_slow_dchecks==1', {
1148 'defines': [ 1177 'defines': [
1149 'ENABLE_SLOW_DCHECKS', 1178 'ENABLE_SLOW_DCHECKS',
1150 ], 1179 ],
1151 }], 1180 }],
1152 ], # conditions 1181 ], # conditions
1153 }, # Release 1182 }, # Release
1154 }, # configurations 1183 }, # configurations
1155 }, # target_defaults 1184 }, # target_defaults
1156 } 1185 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698