OLD | NEW |
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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 'V8_TARGET_ARCH_IA32', | 334 'V8_TARGET_ARCH_IA32', |
335 ], | 335 ], |
336 }], # v8_target_arch=="ia32" | 336 }], # v8_target_arch=="ia32" |
337 ['v8_target_arch=="x87"', { | 337 ['v8_target_arch=="x87"', { |
338 'defines': [ | 338 'defines': [ |
339 'V8_TARGET_ARCH_X87', | 339 'V8_TARGET_ARCH_X87', |
340 ], | 340 ], |
341 'cflags': ['-march=i586'], | 341 'cflags': ['-march=i586'], |
342 }], # v8_target_arch=="x87" | 342 }], # v8_target_arch=="x87" |
343 ['(v8_target_arch=="mips" or v8_target_arch=="mipsel" \ | 343 ['(v8_target_arch=="mips" or v8_target_arch=="mipsel" \ |
344 or v8_target_arch=="mips64el") and v8_target_arch==target_arch', { | 344 or v8_target_arch=="mips64" or v8_target_arch=="mips64el") \ |
| 345 and v8_target_arch==target_arch', { |
345 'target_conditions': [ | 346 'target_conditions': [ |
346 ['_toolset=="target"', { | 347 ['_toolset=="target"', { |
347 # Target built with a Mips CXX compiler. | 348 # Target built with a Mips CXX compiler. |
348 'variables': { | 349 'variables': { |
349 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)', | 350 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)', |
350 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)', | 351 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)', |
351 }, | 352 }, |
352 'conditions': [ | 353 'conditions': [ |
353 ['ldso_path!=""', { | 354 ['ldso_path!=""', { |
354 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'], | 355 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'], |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 ['mips_arch_variant=="loongson"', { | 737 ['mips_arch_variant=="loongson"', { |
737 'defines': [ | 738 'defines': [ |
738 '_MIPS_ARCH_LOONGSON', | 739 '_MIPS_ARCH_LOONGSON', |
739 'FPU_MODE_FP32', | 740 'FPU_MODE_FP32', |
740 ], | 741 ], |
741 }], | 742 }], |
742 ] | 743 ] |
743 }], | 744 }], |
744 ], | 745 ], |
745 }], # v8_target_arch=="mipsel" | 746 }], # v8_target_arch=="mipsel" |
746 ['v8_target_arch=="mips64el"', { | 747 ['v8_target_arch=="mips64el" or v8_target_arch=="mips64"', { |
747 'defines': [ | 748 'defines': [ |
748 'V8_TARGET_ARCH_MIPS64', | 749 'V8_TARGET_ARCH_MIPS64', |
749 ], | 750 ], |
750 'conditions': [ | 751 'conditions': [ |
751 [ 'v8_can_use_fpu_instructions=="true"', { | 752 [ 'v8_can_use_fpu_instructions=="true"', { |
752 'defines': [ | 753 'defines': [ |
753 'CAN_USE_FPU_INSTRUCTIONS', | 754 'CAN_USE_FPU_INSTRUCTIONS', |
754 ], | 755 ], |
755 }], | 756 }], |
| 757 [ 'v8_host_byteorder=="little"', { |
| 758 'defines': [ |
| 759 'V8_TARGET_ARCH_MIPS64_LE', |
| 760 ], |
| 761 }], |
| 762 [ 'v8_host_byteorder=="big"', { |
| 763 'defines': [ |
| 764 'V8_TARGET_ARCH_MIPS64_BE', |
| 765 ], |
| 766 }], |
756 [ 'v8_use_mips_abi_hardfloat=="true"', { | 767 [ 'v8_use_mips_abi_hardfloat=="true"', { |
757 'defines': [ | 768 'defines': [ |
758 '__mips_hard_float=1', | 769 '__mips_hard_float=1', |
759 'CAN_USE_FPU_INSTRUCTIONS', | 770 'CAN_USE_FPU_INSTRUCTIONS', |
760 ], | 771 ], |
761 }, { | 772 }, { |
762 'defines': [ | 773 'defines': [ |
763 '__mips_soft_float=1' | 774 '__mips_soft_float=1' |
764 ], | 775 ], |
765 }], | 776 }], |
766 ], | 777 ], |
767 'target_conditions': [ | 778 'target_conditions': [ |
768 ['_toolset=="target"', { | 779 ['_toolset=="target"', { |
769 'conditions': [ | 780 'conditions': [ |
770 ['v8_target_arch==target_arch', { | 781 ['v8_target_arch==target_arch', { |
771 'cflags': [ | 782 'cflags': [ |
772 '-EL', | |
773 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 | 783 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b
ugzilla/show_bug.cgi?id=56273 |
774 ], | 784 ], |
775 'ldflags': ['-EL'], | |
776 'conditions': [ | 785 'conditions': [ |
| 786 ['v8_target_arch=="mips64el"', { |
| 787 'cflags': ['-EL'], |
| 788 'ldflags': ['-EL'], |
| 789 }], |
| 790 ['v8_target_arch=="mips64"', { |
| 791 'cflags': ['-EB'], |
| 792 'ldflags': ['-EB'], |
| 793 }], |
777 [ 'v8_use_mips_abi_hardfloat=="true"', { | 794 [ 'v8_use_mips_abi_hardfloat=="true"', { |
778 'cflags': ['-mhard-float'], | 795 'cflags': ['-mhard-float'], |
779 'ldflags': ['-mhard-float'], | 796 'ldflags': ['-mhard-float'], |
780 }, { | 797 }, { |
781 'cflags': ['-msoft-float'], | 798 'cflags': ['-msoft-float'], |
782 'ldflags': ['-msoft-float'], | 799 'ldflags': ['-msoft-float'], |
783 }], | 800 }], |
784 ['mips_arch_variant=="r6"', { | 801 ['mips_arch_variant=="r6"', { |
785 'defines': ['_MIPS_ARCH_MIPS64R6',], | 802 'defines': ['_MIPS_ARCH_MIPS64R6',], |
786 'cflags': ['-mips64r6', '-mabi=64', '-Wa,-mips64r6'], | 803 'cflags': ['-mips64r6', '-mabi=64', '-Wa,-mips64r6'], |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 ['v8_enable_slow_dchecks==1', { | 1273 ['v8_enable_slow_dchecks==1', { |
1257 'defines': [ | 1274 'defines': [ |
1258 'ENABLE_SLOW_DCHECKS', | 1275 'ENABLE_SLOW_DCHECKS', |
1259 ], | 1276 ], |
1260 }], | 1277 }], |
1261 ], # conditions | 1278 ], # conditions |
1262 }, # Release | 1279 }, # Release |
1263 }, # configurations | 1280 }, # configurations |
1264 }, # target_defaults | 1281 }, # target_defaults |
1265 } | 1282 } |
OLD | NEW |