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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 'ENABLE_SLOW_DCHECKS', | 910 'ENABLE_SLOW_DCHECKS', |
911 ], | 911 ], |
912 }], | 912 }], |
913 ], | 913 ], |
914 }, # DebugBase0 | 914 }, # DebugBase0 |
915 # Abstract configuration for v8_optimized_debug == 1. | 915 # Abstract configuration for v8_optimized_debug == 1. |
916 'DebugBase1': { | 916 'DebugBase1': { |
917 'abstract': 1, | 917 'abstract': 1, |
918 'msvs_settings': { | 918 'msvs_settings': { |
919 'VCCLCompilerTool': { | 919 'VCCLCompilerTool': { |
920 'Optimization': '1', | |
921 'InlineFunctionExpansion': '2', | |
922 'EnableIntrinsicFunctions': 'true', | |
923 'FavorSizeOrSpeed': '0', | |
924 'StringPooling': 'true', | |
925 'BasicRuntimeChecks': '0', | |
926 'conditions': [ | |
927 ['component=="shared_library"', { | |
928 'RuntimeLibrary': '3', # /MDd | |
929 }, { | |
930 'RuntimeLibrary': '1', # /MTd | |
931 }], | |
932 ], | |
933 }, | |
934 'VCLinkerTool': { | |
935 'LinkIncremental': '2', | |
936 }, | |
937 }, | |
938 'variables': { | |
939 'v8_enable_slow_dchecks%': 1, | |
940 }, | |
941 'conditions': [ | |
942 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ | |
943 OS=="qnx"', { | |
944 'cflags!': [ | |
945 '-O0', | |
946 '-O3', # TODO(2807) should be -O1. | |
947 '-O2', | |
948 '-Os', | |
949 ], | |
950 'cflags': [ | |
951 '-fdata-sections', | |
952 '-ffunction-sections', | |
953 '-O1', # TODO(2807) should be -O3. | |
954 ], | |
955 }], | |
956 ['OS=="mac"', { | |
957 'xcode_settings': { | |
958 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | |
959 'GCC_STRICT_ALIASING': 'YES', | |
960 }, | |
961 }], | |
962 ['v8_enable_slow_dchecks==1', { | |
963 'defines': [ | |
964 'ENABLE_SLOW_DCHECKS', | |
965 ], | |
966 }], | |
967 ], | |
968 }, # DebugBase1 | |
969 # Abstract configuration for v8_optimized_debug == 2. | |
970 'DebugBase2': { | |
971 'abstract': 1, | |
972 'msvs_settings': { | |
973 'VCCLCompilerTool': { | |
974 'Optimization': '2', | 920 'Optimization': '2', |
975 'InlineFunctionExpansion': '2', | 921 'InlineFunctionExpansion': '2', |
976 'EnableIntrinsicFunctions': 'true', | 922 'EnableIntrinsicFunctions': 'true', |
977 'FavorSizeOrSpeed': '0', | 923 'FavorSizeOrSpeed': '0', |
978 'StringPooling': 'true', | 924 'StringPooling': 'true', |
979 'BasicRuntimeChecks': '0', | 925 'BasicRuntimeChecks': '0', |
980 'conditions': [ | 926 'conditions': [ |
981 ['component=="shared_library"', { | 927 ['component=="shared_library"', { |
982 'RuntimeLibrary': '3', #/MDd | 928 'RuntimeLibrary': '3', #/MDd |
983 }, { | 929 }, { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 | 968 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 |
1023 'GCC_STRICT_ALIASING': 'YES', | 969 'GCC_STRICT_ALIASING': 'YES', |
1024 }, | 970 }, |
1025 }], | 971 }], |
1026 ['v8_enable_slow_dchecks==1', { | 972 ['v8_enable_slow_dchecks==1', { |
1027 'defines': [ | 973 'defines': [ |
1028 'ENABLE_SLOW_DCHECKS', | 974 'ENABLE_SLOW_DCHECKS', |
1029 ], | 975 ], |
1030 }], | 976 }], |
1031 ], | 977 ], |
1032 }, # DebugBase2 | 978 }, # DebugBase1 |
1033 # Common settings for the Debug configuration. | 979 # Common settings for the Debug configuration. |
1034 'DebugBaseCommon': { | 980 'DebugBaseCommon': { |
1035 'abstract': 1, | 981 'abstract': 1, |
1036 'defines': [ | 982 'defines': [ |
1037 'ENABLE_DISASSEMBLER', | 983 'ENABLE_DISASSEMBLER', |
1038 'V8_ENABLE_CHECKS', | 984 'V8_ENABLE_CHECKS', |
1039 'OBJECT_PRINT', | 985 'OBJECT_PRINT', |
1040 'VERIFY_HEAP', | 986 'VERIFY_HEAP', |
1041 'DEBUG', | 987 'DEBUG', |
1042 'TRACE_MAPS' | 988 'TRACE_MAPS' |
(...skipping 23 matching lines...) Expand all Loading... |
1066 ], | 1012 ], |
1067 }], | 1013 }], |
1068 ], | 1014 ], |
1069 }, # DebugBaseCommon | 1015 }, # DebugBaseCommon |
1070 'Debug': { | 1016 'Debug': { |
1071 'inherit_from': ['DebugBaseCommon'], | 1017 'inherit_from': ['DebugBaseCommon'], |
1072 'conditions': [ | 1018 'conditions': [ |
1073 ['v8_optimized_debug==0', { | 1019 ['v8_optimized_debug==0', { |
1074 'inherit_from': ['DebugBase0'], | 1020 'inherit_from': ['DebugBase0'], |
1075 }], | 1021 }], |
1076 ['v8_optimized_debug==1', { | 1022 ['v8_optimized_debug!=1', { |
1077 'inherit_from': ['DebugBase1'], | 1023 'inherit_from': ['DebugBase1'], |
1078 }], | 1024 }], |
1079 ['v8_optimized_debug==2', { | |
1080 'inherit_from': ['DebugBase2'], | |
1081 }], | |
1082 ], | 1025 ], |
1083 }, # Debug | 1026 }, # Debug |
1084 'Release': { | 1027 'Release': { |
1085 'variables': { | 1028 'variables': { |
1086 'v8_enable_slow_dchecks%': 0, | 1029 'v8_enable_slow_dchecks%': 0, |
1087 }, | 1030 }, |
1088 'conditions': [ | 1031 'conditions': [ |
1089 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 1032 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
1090 'cflags!': [ | 1033 'cflags!': [ |
1091 '-Os', | 1034 '-Os', |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 ['v8_enable_slow_dchecks==1', { | 1097 ['v8_enable_slow_dchecks==1', { |
1155 'defines': [ | 1098 'defines': [ |
1156 'ENABLE_SLOW_DCHECKS', | 1099 'ENABLE_SLOW_DCHECKS', |
1157 ], | 1100 ], |
1158 }], | 1101 }], |
1159 ], # conditions | 1102 ], # conditions |
1160 }, # Release | 1103 }, # Release |
1161 }, # configurations | 1104 }, # configurations |
1162 }, # target_defaults | 1105 }, # target_defaults |
1163 } | 1106 } |
OLD | NEW |