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

Side by Side Diff: build/toolchain.gypi

Issue 98543008: Switch armv7 setting to arm_version=7 in v8 gyp files (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years 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
« build/android.gypi ('K') | « build/standalone.gypi ('k') | 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 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 'V8_TARGET_ARCH_ARM', 85 'V8_TARGET_ARCH_ARM',
86 ], 86 ],
87 'target_conditions': [ 87 'target_conditions': [
88 ['_toolset=="host"', { 88 ['_toolset=="host"', {
89 'variables': { 89 'variables': {
90 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre p -q "^Target: arm" && echo "yes" || echo "no")', 90 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre p -q "^Target: arm" && echo "yes" || echo "no")',
91 }, 91 },
92 'conditions': [ 92 'conditions': [
93 ['armcompiler=="yes"', { 93 ['armcompiler=="yes"', {
94 'conditions': [ 94 'conditions': [
95 [ 'armv7==1', { 95 [ 'arm_version==7', {
96 'cflags': ['-march=armv7-a',], 96 'cflags': ['-march=armv7-a',],
97 }],
98 [ 'armv7==1 or armv7=="default"', {
99 'conditions': [ 97 'conditions': [
100 [ 'arm_neon==1', { 98 [ 'arm_neon==1', {
101 'cflags': ['-mfpu=neon',], 99 'cflags': ['-mfpu=neon',],
102 }, 100 },
103 { 101 {
104 'conditions': [ 102 'conditions': [
105 [ 'arm_fpu!="default"', { 103 [ 'arm_fpu!="default"', {
106 'cflags': ['-mfpu=<(arm_fpu)',], 104 'cflags': ['-mfpu=<(arm_fpu)',],
107 }], 105 }],
108 ], 106 ],
(...skipping 11 matching lines...) Expand all
120 }], 118 }],
121 [ 'arm_test=="on"', { 119 [ 'arm_test=="on"', {
122 'defines': [ 120 'defines': [
123 'ARM_TEST', 121 'ARM_TEST',
124 ], 122 ],
125 }], 123 }],
126 ], 124 ],
127 }, { 125 }, {
128 # armcompiler=="no" 126 # armcompiler=="no"
129 'conditions': [ 127 'conditions': [
130 [ 'armv7==1 or armv7=="default"', { 128 [ 'arm_version==7', {
131 'defines': [ 129 'defines': [
132 'CAN_USE_ARMV7_INSTRUCTIONS=1', 130 'CAN_USE_ARMV7_INSTRUCTIONS=1',
133 ], 131 ],
134 'conditions': [ 132 'conditions': [
135 [ 'arm_fpu=="default"', { 133 [ 'arm_fpu=="default"', {
136 'defines': [ 134 'defines': [
137 'CAN_USE_VFP3_INSTRUCTIONS', 135 'CAN_USE_VFP3_INSTRUCTIONS',
138 ], 136 ],
139 }], 137 }],
140 [ 'arm_fpu=="vfpv3-d16"', { 138 [ 'arm_fpu=="vfpv3-d16"', {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 }], 171 }],
174 ], 172 ],
175 }], # _toolset=="host" 173 }], # _toolset=="host"
176 ['_toolset=="target"', { 174 ['_toolset=="target"', {
177 'variables': { 175 'variables': {
178 'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q "^Target: arm" && echo "yes" || echo "no")', 176 'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q "^Target: arm" && echo "yes" || echo "no")',
179 }, 177 },
180 'conditions': [ 178 'conditions': [
181 ['armcompiler=="yes"', { 179 ['armcompiler=="yes"', {
182 'conditions': [ 180 'conditions': [
183 [ 'armv7==1', { 181 [ 'arm_version==7', {
184 'cflags': ['-march=armv7-a',], 182 'cflags': ['-march=armv7-a',],
185 }],
186 [ 'armv7==1 or armv7=="default"', {
187 'conditions': [ 183 'conditions': [
188 [ 'arm_neon==1', { 184 [ 'arm_neon==1', {
189 'cflags': ['-mfpu=neon',], 185 'cflags': ['-mfpu=neon',],
190 }, 186 },
191 { 187 {
192 'conditions': [ 188 'conditions': [
193 [ 'arm_fpu!="default"', { 189 [ 'arm_fpu!="default"', {
194 'cflags': ['-mfpu=<(arm_fpu)',], 190 'cflags': ['-mfpu=<(arm_fpu)',],
195 }], 191 }],
196 ], 192 ],
(...skipping 11 matching lines...) Expand all
208 }], 204 }],
209 [ 'arm_test=="on"', { 205 [ 'arm_test=="on"', {
210 'defines': [ 206 'defines': [
211 'ARM_TEST', 207 'ARM_TEST',
212 ], 208 ],
213 }], 209 }],
214 ], 210 ],
215 }, { 211 }, {
216 # armcompiler=="no" 212 # armcompiler=="no"
217 'conditions': [ 213 'conditions': [
218 [ 'armv7==1 or armv7=="default"', { 214 [ 'arm_version==7', {
219 'defines': [ 215 'defines': [
220 'CAN_USE_ARMV7_INSTRUCTIONS=1', 216 'CAN_USE_ARMV7_INSTRUCTIONS=1',
221 ], 217 ],
222 'conditions': [ 218 'conditions': [
223 [ 'arm_fpu=="default"', { 219 [ 'arm_fpu=="default"', {
224 'defines': [ 220 'defines': [
225 'CAN_USE_VFP3_INSTRUCTIONS', 221 'CAN_USE_VFP3_INSTRUCTIONS',
226 ], 222 ],
227 }], 223 }],
228 [ 'arm_fpu=="vfpv3-d16"', { 224 [ 'arm_fpu=="vfpv3-d16"', {
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 'OptimizeReferences': '2', 678 'OptimizeReferences': '2',
683 'EnableCOMDATFolding': '2', 679 'EnableCOMDATFolding': '2',
684 }, 680 },
685 }, 681 },
686 }], # OS=="win" 682 }], # OS=="win"
687 ], # conditions 683 ], # conditions
688 }, # Release 684 }, # Release
689 }, # configurations 685 }, # configurations
690 }, # target_defaults 686 }, # target_defaults
691 } 687 }
OLDNEW
« build/android.gypi ('K') | « build/standalone.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698