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

Side by Side Diff: build/toolchain.gypi

Issue 1160973006: MIPS: Improve --rpath and --dynamic-linker handling in gyp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix nits. Created 5 years, 6 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 | « no previous file | 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 'defines': [ 331 'defines': [
332 'V8_TARGET_ARCH_IA32', 332 'V8_TARGET_ARCH_IA32',
333 ], 333 ],
334 }], # v8_target_arch=="ia32" 334 }], # v8_target_arch=="ia32"
335 ['v8_target_arch=="x87"', { 335 ['v8_target_arch=="x87"', {
336 'defines': [ 336 'defines': [
337 'V8_TARGET_ARCH_X87', 337 'V8_TARGET_ARCH_X87',
338 ], 338 ],
339 'cflags': ['-march=i586'], 339 'cflags': ['-march=i586'],
340 }], # v8_target_arch=="x87" 340 }], # v8_target_arch=="x87"
341 ['(v8_target_arch=="mips" or v8_target_arch=="mipsel" \
342 or v8_target_arch=="mips64el") and v8_target_arch==target_arch', {
343 'target_conditions': [
344 ['_toolset=="target"', {
345 # Target built with a Mips CXX compiler.
346 'variables': {
347 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)',
348 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)',
349 },
350 'conditions': [
351 ['ldso_path!=""', {
352 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'],
353 }],
354 ['ld_r_path!=""', {
355 'ldflags': ['-Wl,--rpath=<(ld_r_path)'],
356 }],
357 ],
358 }],
359 ],
360 }],
341 ['v8_target_arch=="mips"', { 361 ['v8_target_arch=="mips"', {
342 'defines': [ 362 'defines': [
343 'V8_TARGET_ARCH_MIPS', 363 'V8_TARGET_ARCH_MIPS',
344 ], 364 ],
345 'conditions': [ 365 'conditions': [
346 [ 'v8_can_use_fpu_instructions=="true"', { 366 [ 'v8_can_use_fpu_instructions=="true"', {
347 'defines': [ 367 'defines': [
348 'CAN_USE_FPU_INSTRUCTIONS', 368 'CAN_USE_FPU_INSTRUCTIONS',
349 ], 369 ],
350 }], 370 }],
(...skipping 26 matching lines...) Expand all
377 'cflags': ['-msoft-float'], 397 'cflags': ['-msoft-float'],
378 'ldflags': ['-msoft-float'], 398 'ldflags': ['-msoft-float'],
379 }], 399 }],
380 ['mips_arch_variant=="r6"', { 400 ['mips_arch_variant=="r6"', {
381 'defines': [ 401 'defines': [
382 '_MIPS_ARCH_MIPS32R6', 402 '_MIPS_ARCH_MIPS32R6',
383 'FPU_MODE_FP64', 403 'FPU_MODE_FP64',
384 ], 404 ],
385 'cflags!': ['-mfp32', '-mfpxx'], 405 'cflags!': ['-mfp32', '-mfpxx'],
386 'cflags': ['-mips32r6', '-Wa,-mips32r6'], 406 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
387 'ldflags': [ 407 'ldflags': ['-mips32r6'],
388 '-mips32r6',
389 '-Wl,--dynamic-linker=$(LDSO_PATH)',
390 '-Wl,--rpath=$(LD_R_PATH)',
391 ],
392 }], 408 }],
393 ['mips_arch_variant=="r2"', { 409 ['mips_arch_variant=="r2"', {
394 'conditions': [ 410 'conditions': [
395 [ 'mips_fpu_mode=="fp64"', { 411 [ 'mips_fpu_mode=="fp64"', {
396 'defines': [ 412 'defines': [
397 '_MIPS_ARCH_MIPS32R2', 413 '_MIPS_ARCH_MIPS32R2',
398 'FPU_MODE_FP64', 414 'FPU_MODE_FP64',
399 ], 415 ],
400 'cflags': ['-mfp64'], 416 'cflags': ['-mfp64'],
401 }], 417 }],
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 'cflags': ['-msoft-float'], 580 'cflags': ['-msoft-float'],
565 'ldflags': ['-msoft-float'], 581 'ldflags': ['-msoft-float'],
566 }], 582 }],
567 ['mips_arch_variant=="r6"', { 583 ['mips_arch_variant=="r6"', {
568 'defines': [ 584 'defines': [
569 '_MIPS_ARCH_MIPS32R6', 585 '_MIPS_ARCH_MIPS32R6',
570 'FPU_MODE_FP64', 586 'FPU_MODE_FP64',
571 ], 587 ],
572 'cflags!': ['-mfp32', '-mfpxx'], 588 'cflags!': ['-mfp32', '-mfpxx'],
573 'cflags': ['-mips32r6', '-Wa,-mips32r6'], 589 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
574 'ldflags': [ 590 'ldflags': ['-mips32r6'],
575 '-mips32r6',
576 '-Wl,--dynamic-linker=$(LDSO_PATH)',
577 '-Wl,--rpath=$(LD_R_PATH)',
578 ],
579 }], 591 }],
580 ['mips_arch_variant=="r2"', { 592 ['mips_arch_variant=="r2"', {
581 'conditions': [ 593 'conditions': [
582 [ 'mips_fpu_mode=="fp64"', { 594 [ 'mips_fpu_mode=="fp64"', {
583 'defines': [ 595 'defines': [
584 '_MIPS_ARCH_MIPS32R2', 596 '_MIPS_ARCH_MIPS32R2',
585 'FPU_MODE_FP64', 597 'FPU_MODE_FP64',
586 ], 598 ],
587 'cflags': ['-mfp64'], 599 'cflags': ['-mfp64'],
588 }], 600 }],
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 [ 'v8_use_mips_abi_hardfloat=="true"', { 775 [ 'v8_use_mips_abi_hardfloat=="true"', {
764 'cflags': ['-mhard-float'], 776 'cflags': ['-mhard-float'],
765 'ldflags': ['-mhard-float'], 777 'ldflags': ['-mhard-float'],
766 }, { 778 }, {
767 'cflags': ['-msoft-float'], 779 'cflags': ['-msoft-float'],
768 'ldflags': ['-msoft-float'], 780 'ldflags': ['-msoft-float'],
769 }], 781 }],
770 ['mips_arch_variant=="r6"', { 782 ['mips_arch_variant=="r6"', {
771 'defines': ['_MIPS_ARCH_MIPS64R6',], 783 'defines': ['_MIPS_ARCH_MIPS64R6',],
772 'cflags': ['-mips64r6', '-mabi=64', '-Wa,-mips64r6'], 784 'cflags': ['-mips64r6', '-mabi=64', '-Wa,-mips64r6'],
773 'ldflags': [ 785 'ldflags': ['-mips64r6', '-mabi=64'],
774 '-mips64r6', '-mabi=64',
775 '-Wl,--dynamic-linker=$(LDSO_PATH)',
776 '-Wl,--rpath=$(LD_R_PATH)',
777 ],
778 }], 786 }],
779 ['mips_arch_variant=="r2"', { 787 ['mips_arch_variant=="r2"', {
780 'defines': ['_MIPS_ARCH_MIPS64R2',], 788 'defines': ['_MIPS_ARCH_MIPS64R2',],
781 'cflags': ['-mips64r2', '-mabi=64', '-Wa,-mips64r2'], 789 'cflags': ['-mips64r2', '-mabi=64', '-Wa,-mips64r2'],
782 'ldflags': [ 790 'ldflags': ['-mips64r2', '-mabi=64'],
783 '-mips64r2', '-mabi=64',
784 '-Wl,--dynamic-linker=$(LDSO_PATH)',
785 '-Wl,--rpath=$(LD_R_PATH)',
786 ],
787 }], 791 }],
788 ], 792 ],
789 }, { 793 }, {
790 # 'v8_target_arch!=target_arch' 794 # 'v8_target_arch!=target_arch'
791 # Target not built with an MIPS CXX compiler (simulator build). 795 # Target not built with an MIPS CXX compiler (simulator build).
792 'conditions': [ 796 'conditions': [
793 ['mips_arch_variant=="r6"', { 797 ['mips_arch_variant=="r6"', {
794 'defines': ['_MIPS_ARCH_MIPS64R6',], 798 'defines': ['_MIPS_ARCH_MIPS64R6',],
795 }], 799 }],
796 ['mips_arch_variant=="r2"', { 800 ['mips_arch_variant=="r2"', {
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 ['v8_enable_slow_dchecks==1', { 1252 ['v8_enable_slow_dchecks==1', {
1249 'defines': [ 1253 'defines': [
1250 'ENABLE_SLOW_DCHECKS', 1254 'ENABLE_SLOW_DCHECKS',
1251 ], 1255 ],
1252 }], 1256 }],
1253 ], # conditions 1257 ], # conditions
1254 }, # Release 1258 }, # Release
1255 }, # configurations 1259 }, # configurations
1256 }, # target_defaults 1260 }, # target_defaults
1257 } 1261 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698