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

Side by Side Diff: build/toolchain.gypi

Issue 228943009: MIPS: Add big-endian support for MIPS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed Created 6 years, 8 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 | « Makefile ('k') | src/conversions-inl.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 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 ['v8_target_arch=="arm64"', { 271 ['v8_target_arch=="arm64"', {
272 'defines': [ 272 'defines': [
273 'V8_TARGET_ARCH_ARM64', 273 'V8_TARGET_ARCH_ARM64',
274 ], 274 ],
275 }], 275 }],
276 ['v8_target_arch=="ia32"', { 276 ['v8_target_arch=="ia32"', {
277 'defines': [ 277 'defines': [
278 'V8_TARGET_ARCH_IA32', 278 'V8_TARGET_ARCH_IA32',
279 ], 279 ],
280 }], # v8_target_arch=="ia32" 280 }], # v8_target_arch=="ia32"
281 ['v8_target_arch=="mips"', {
282 'defines': [
283 'V8_TARGET_ARCH_MIPS',
284 ],
285 'variables': {
286 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" & & echo "yes" || echo "no")',
287 },
288 'conditions': [
289 ['mipscompiler=="yes"', {
290 'target_conditions': [
291 ['_toolset=="target"', {
292 'cflags': ['-EB'],
293 'ldflags': ['-EB'],
294 'conditions': [
295 [ 'v8_use_mips_abi_hardfloat=="true"', {
296 'cflags': ['-mhard-float'],
297 'ldflags': ['-mhard-float'],
298 }, {
299 'cflags': ['-msoft-float'],
300 'ldflags': ['-msoft-float'],
301 }],
302 ['mips_arch_variant=="mips32r2"', {
303 'cflags': ['-mips32r2', '-Wa,-mips32r2'],
304 }],
305 ['mips_arch_variant=="mips32r1"', {
306 'cflags': ['-mips32', '-Wa,-mips32'],
307 }],
308 ],
309 }],
310 ],
311 }],
312 [ 'v8_can_use_fpu_instructions=="true"', {
313 'defines': [
314 'CAN_USE_FPU_INSTRUCTIONS',
315 ],
316 }],
317 [ 'v8_use_mips_abi_hardfloat=="true"', {
318 'defines': [
319 '__mips_hard_float=1',
320 'CAN_USE_FPU_INSTRUCTIONS',
321 ],
322 }, {
323 'defines': [
324 '__mips_soft_float=1'
325 ],
326 }],
327 ['mips_arch_variant=="mips32r2"', {
328 'defines': ['_MIPS_ARCH_MIPS32R2',],
329 }],
330 ],
331 }], # v8_target_arch=="mips"
281 ['v8_target_arch=="mipsel"', { 332 ['v8_target_arch=="mipsel"', {
282 'defines': [ 333 'defines': [
283 'V8_TARGET_ARCH_MIPS', 334 'V8_TARGET_ARCH_MIPS',
284 ], 335 ],
285 'variables': { 336 'variables': {
286 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" & & echo "yes" || echo "no")', 337 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" & & echo "yes" || echo "no")',
287 }, 338 },
288 'conditions': [ 339 'conditions': [
289 ['mipscompiler=="yes"', { 340 ['mipscompiler=="yes"', {
290 'target_conditions': [ 341 'target_conditions': [
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 'cflags': [ '-fno-strict-aliasing' ], 424 'cflags': [ '-fno-strict-aliasing' ],
374 }], 425 }],
375 ], # conditions 426 ], # conditions
376 }], 427 }],
377 ['OS=="solaris"', { 428 ['OS=="solaris"', {
378 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. 429 'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
379 }], 430 }],
380 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 431 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
381 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ 432 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
382 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ 433 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \
383 v8_target_arch=="mipsel")', { 434 v8_target_arch=="mips" or v8_target_arch=="mipsel")', {
384 # Check whether the host compiler and target compiler support the 435 # Check whether the host compiler and target compiler support the
385 # '-m32' option and set it if so. 436 # '-m32' option and set it if so.
386 'target_conditions': [ 437 'target_conditions': [
387 ['_toolset=="host"', { 438 ['_toolset=="host"', {
388 'variables': { 439 'variables': {
389 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev /null 2>&1 < /dev/null) && echo "-m32" || true)', 440 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev /null 2>&1 < /dev/null) && echo "-m32" || true)',
390 }, 441 },
391 'cflags': [ '<(m32flag)' ], 442 'cflags': [ '<(m32flag)' ],
392 'ldflags': [ '<(m32flag)' ], 443 'ldflags': [ '<(m32flag)' ],
393 'xcode_settings': { 444 'xcode_settings': {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 'OptimizeReferences': '2', 791 'OptimizeReferences': '2',
741 'EnableCOMDATFolding': '2', 792 'EnableCOMDATFolding': '2',
742 }, 793 },
743 }, 794 },
744 }], # OS=="win" 795 }], # OS=="win"
745 ], # conditions 796 ], # conditions
746 }, # Release 797 }, # Release
747 }, # configurations 798 }, # configurations
748 }, # target_defaults 799 }, # target_defaults
749 } 800 }
OLDNEW
« no previous file with comments | « Makefile ('k') | src/conversions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698