Chromium Code Reviews| 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=="mips64el") and v8_target_arch==target_arch', { |
|
paul.l...
2015/09/15 00:06:41
Please add 'or v8_target_arch=="mips64"' clause he
dusan.milosavljevic
2015/09/15 12:58:09
Done.
| |
| 345 'target_conditions': [ | 345 'target_conditions': [ |
| 346 ['_toolset=="target"', { | 346 ['_toolset=="target"', { |
| 347 # Target built with a Mips CXX compiler. | 347 # Target built with a Mips CXX compiler. |
| 348 'variables': { | 348 'variables': { |
| 349 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)', | 349 'ldso_path%': '<!(/bin/echo -n $LDSO_PATH)', |
| 350 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)', | 350 'ld_r_path%': '<!(/bin/echo -n $LD_R_PATH)', |
| 351 }, | 351 }, |
| 352 'conditions': [ | 352 'conditions': [ |
| 353 ['ldso_path!=""', { | 353 ['ldso_path!=""', { |
| 354 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'], | 354 'ldflags': ['-Wl,--dynamic-linker=<(ldso_path)'], |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 736 ['mips_arch_variant=="loongson"', { | 736 ['mips_arch_variant=="loongson"', { |
| 737 'defines': [ | 737 'defines': [ |
| 738 '_MIPS_ARCH_LOONGSON', | 738 '_MIPS_ARCH_LOONGSON', |
| 739 'FPU_MODE_FP32', | 739 'FPU_MODE_FP32', |
| 740 ], | 740 ], |
| 741 }], | 741 }], |
| 742 ] | 742 ] |
| 743 }], | 743 }], |
| 744 ], | 744 ], |
| 745 }], # v8_target_arch=="mipsel" | 745 }], # v8_target_arch=="mipsel" |
| 746 ['v8_target_arch=="mips64el"', { | 746 ['v8_target_arch=="mips64el" or v8_target_arch=="mips64"', { |
| 747 'defines': [ | 747 'defines': [ |
| 748 'V8_TARGET_ARCH_MIPS64', | 748 'V8_TARGET_ARCH_MIPS64', |
| 749 ], | 749 ], |
| 750 'conditions': [ | 750 'conditions': [ |
| 751 [ 'v8_can_use_fpu_instructions=="true"', { | 751 [ 'v8_can_use_fpu_instructions=="true"', { |
| 752 'defines': [ | 752 'defines': [ |
| 753 'CAN_USE_FPU_INSTRUCTIONS', | 753 'CAN_USE_FPU_INSTRUCTIONS', |
| 754 ], | 754 ], |
| 755 }], | 755 }], |
| 756 [ 'v8_host_byteorder=="little"', { | |
| 757 'defines': [ | |
| 758 'V8_TARGET_ARCH_MIPS64_LE', | |
|
paul.l...
2015/09/15 00:06:41
Per MIPS conventions, this should probably be call
dusan.milosavljevic
2015/09/15 12:58:09
Not based on MIPS convention, I used these names t
| |
| 759 ], | |
| 760 }], | |
| 761 [ 'v8_host_byteorder=="big"', { | |
| 762 'defines': [ | |
| 763 'V8_TARGET_ARCH_MIPS64_BE', | |
|
paul.l...
2015/09/15 00:06:41
Should be ..._EB, as above. While you use this in
dusan.milosavljevic
2015/09/15 12:58:09
This is used to detect host byte-order in addition
| |
| 764 ], | |
| 765 }], | |
| 756 [ 'v8_use_mips_abi_hardfloat=="true"', { | 766 [ 'v8_use_mips_abi_hardfloat=="true"', { |
| 757 'defines': [ | 767 'defines': [ |
| 758 '__mips_hard_float=1', | 768 '__mips_hard_float=1', |
| 759 'CAN_USE_FPU_INSTRUCTIONS', | 769 'CAN_USE_FPU_INSTRUCTIONS', |
| 760 ], | 770 ], |
| 761 }, { | 771 }, { |
| 762 'defines': [ | 772 'defines': [ |
| 763 '__mips_soft_float=1' | 773 '__mips_soft_float=1' |
| 764 ], | 774 ], |
| 765 }], | 775 }], |
| 766 ], | 776 ], |
| 767 'target_conditions': [ | 777 'target_conditions': [ |
| 768 ['_toolset=="target"', { | 778 ['_toolset=="target"', { |
| 769 'conditions': [ | 779 'conditions': [ |
| 770 ['v8_target_arch==target_arch', { | 780 ['v8_target_arch==target_arch', { |
| 771 'cflags': [ | 781 'cflags': [ |
| 772 '-EL', | |
| 773 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b ugzilla/show_bug.cgi?id=56273 | 782 '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/b ugzilla/show_bug.cgi?id=56273 |
| 774 ], | 783 ], |
| 775 'ldflags': ['-EL'], | |
| 776 'conditions': [ | 784 'conditions': [ |
| 785 ['v8_target_arch=="mips64el"', { | |
| 786 'cflags': ['-EL'], | |
| 787 'ldflags': ['-EL'], | |
| 788 }], | |
| 789 ['v8_target_arch=="mips64"', { | |
| 790 'cflags': ['-EB'], | |
| 791 'ldflags': ['-EB'], | |
| 792 }], | |
| 777 [ 'v8_use_mips_abi_hardfloat=="true"', { | 793 [ 'v8_use_mips_abi_hardfloat=="true"', { |
| 778 'cflags': ['-mhard-float'], | 794 'cflags': ['-mhard-float'], |
| 779 'ldflags': ['-mhard-float'], | 795 'ldflags': ['-mhard-float'], |
| 780 }, { | 796 }, { |
| 781 'cflags': ['-msoft-float'], | 797 'cflags': ['-msoft-float'], |
| 782 'ldflags': ['-msoft-float'], | 798 'ldflags': ['-msoft-float'], |
| 783 }], | 799 }], |
| 784 ['mips_arch_variant=="r6"', { | 800 ['mips_arch_variant=="r6"', { |
| 785 'defines': ['_MIPS_ARCH_MIPS64R6',], | 801 'defines': ['_MIPS_ARCH_MIPS64R6',], |
| 786 'cflags': ['-mips64r6', '-mabi=64', '-Wa,-mips64r6'], | 802 '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', { | 1272 ['v8_enable_slow_dchecks==1', { |
| 1257 'defines': [ | 1273 'defines': [ |
| 1258 'ENABLE_SLOW_DCHECKS', | 1274 'ENABLE_SLOW_DCHECKS', |
| 1259 ], | 1275 ], |
| 1260 }], | 1276 }], |
| 1261 ], # conditions | 1277 ], # conditions |
| 1262 }, # Release | 1278 }, # Release |
| 1263 }, # configurations | 1279 }, # configurations |
| 1264 }, # target_defaults | 1280 }, # target_defaults |
| 1265 } | 1281 } |
| OLD | NEW |