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

Side by Side Diff: build/common.gypi

Issue 9231019: Provide a switch to specify -fno-strict-aliasing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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') | 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 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 'v8_enable_disassembler%': 0, 67 'v8_enable_disassembler%': 0,
68 68
69 'v8_object_print%': 0, 69 'v8_object_print%': 0,
70 70
71 'v8_enable_gdbjit%': 0, 71 'v8_enable_gdbjit%': 0,
72 72
73 # Enable profiling support. Only required on Windows. 73 # Enable profiling support. Only required on Windows.
74 'v8_enable_prof%': 0, 74 'v8_enable_prof%': 0,
75 75
76 # Some versions of GCC 4.5 seem to need -fno-strict-aliasing.
77 'v8_no_strict_aliasing%': 0,
78
76 # Chrome needs this definition unconditionally. For standalone V8 builds, 79 # Chrome needs this definition unconditionally. For standalone V8 builds,
77 # it's handled in build/standalone.gypi. 80 # it's handled in build/standalone.gypi.
78 'want_separate_host_toolset%': 1, 81 'want_separate_host_toolset%': 1,
79 82
80 'v8_use_snapshot%': 'true', 83 'v8_use_snapshot%': 'true',
81 'host_os%': '<(OS)', 84 'host_os%': '<(OS)',
82 'v8_use_liveobjectlist%': 'false', 85 'v8_use_liveobjectlist%': 'false',
83 'werror%': '-Werror', 86 'werror%': '-Werror',
84 87
85 # For a shared library build, results in "libv8-<(soname_version).so". 88 # For a shared library build, results in "libv8-<(soname_version).so".
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 }, 223 },
221 }, 224 },
222 }], 225 }],
223 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 226 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
224 or OS=="netbsd"', { 227 or OS=="netbsd"', {
225 'conditions': [ 228 'conditions': [
226 [ 'target_arch=="ia32"', { 229 [ 'target_arch=="ia32"', {
227 'cflags': [ '-m32' ], 230 'cflags': [ '-m32' ],
228 'ldflags': [ '-m32' ], 231 'ldflags': [ '-m32' ],
229 }], 232 }],
230 ], 233 [ 'v8_no_strict_aliasing==1', {
234 'cflags': [ '-fno-strict-aliasing' ],
235 }],
236 ], # conditions
231 }], 237 }],
232 ['OS=="solaris"', { 238 ['OS=="solaris"', {
233 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. 239 'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
234 }], 240 }],
235 ], # conditions 241 ], # conditions
236 'configurations': { 242 'configurations': {
237 'Debug': { 243 'Debug': {
238 'defines': [ 244 'defines': [
239 'DEBUG', 245 'DEBUG',
240 'ENABLE_DISASSEMBLER', 246 'ENABLE_DISASSEMBLER',
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 # some test cases can cause stack overflow. 353 # some test cases can cause stack overflow.
348 # 'StackReserveSize': '297152', 354 # 'StackReserveSize': '297152',
349 }, 355 },
350 }, 356 },
351 }], # OS=="win" 357 }], # OS=="win"
352 ], # conditions 358 ], # conditions
353 }, # Release 359 }, # Release
354 }, # configurations 360 }, # configurations
355 }, # target_defaults 361 }, # target_defaults
356 } 362 }
OLDNEW
« no previous file with comments | « Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698