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

Side by Side Diff: build/common.gypi

Issue 9071004: Add netbsd support to gyp build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove strict-aliasing warning 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 | « no previous file | build/standalone.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2011 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
11 # with the distribution. 11 # with the distribution.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 'COMPRESS_STARTUP_DATA_BZ2', 208 'COMPRESS_STARTUP_DATA_BZ2',
209 ], 209 ],
210 }], 210 }],
211 ['OS=="win" and v8_enable_prof==1', { 211 ['OS=="win" and v8_enable_prof==1', {
212 'msvs_settings': { 212 'msvs_settings': {
213 'VCLinkerTool': { 213 'VCLinkerTool': {
214 'GenerateMapFile': 'true', 214 'GenerateMapFile': 'true',
215 }, 215 },
216 }, 216 },
217 }], 217 }],
218 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 218 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
219 or OS=="netbsd"', {
219 'conditions': [ 220 'conditions': [
220 [ 'target_arch=="ia32"', { 221 [ 'target_arch=="ia32"', {
221 'cflags': [ '-m32' ], 222 'cflags': [ '-m32' ],
222 'ldflags': [ '-m32' ], 223 'ldflags': [ '-m32' ],
223 }], 224 }],
224 ], 225 ],
225 }], 226 }],
226 ['OS=="solaris"', { 227 ['OS=="solaris"', {
227 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. 228 'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
228 }], 229 }],
(...skipping 23 matching lines...) Expand all
252 # For future reference, the stack size needs to be increased 253 # For future reference, the stack size needs to be increased
253 # when building for Windows 64-bit, otherwise some test cases 254 # when building for Windows 64-bit, otherwise some test cases
254 # can cause stack overflow. 255 # can cause stack overflow.
255 # 'StackReserveSize': '297152', 256 # 'StackReserveSize': '297152',
256 }, 257 },
257 }, 258 },
258 'conditions': [ 259 'conditions': [
259 ['OS=="freebsd" or OS=="openbsd"', { 260 ['OS=="freebsd" or OS=="openbsd"', {
260 'cflags': [ '-I/usr/local/include' ], 261 'cflags': [ '-I/usr/local/include' ],
261 }], 262 }],
262 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 263 ['OS=="netbsd"', {
264 'cflags': [ '-I/usr/pkg/include -Wno-strict-aliasing' ],
265 }],
266 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
263 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 267 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
264 '-Wnon-virtual-dtor' ], 268 '-Wnon-virtual-dtor' ],
265 }], 269 }],
266 ], 270 ],
267 }, 271 },
268 'Release': { 272 'Release': {
269 'conditions': [ 273 'conditions': [
270 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 274 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
271 'cflags!': [ 275 'cflags!': [
272 '-O2', 276 '-O2',
273 '-Os', 277 '-Os',
274 ], 278 ],
275 'cflags': [ 279 'cflags': [
276 '-fdata-sections', 280 '-fdata-sections',
277 '-ffunction-sections', 281 '-ffunction-sections',
278 '-fomit-frame-pointer', 282 '-fomit-frame-pointer',
279 '-O3', 283 '-O3',
280 ], 284 ],
281 'conditions': [ 285 'conditions': [
282 [ 'gcc_version==44', { 286 [ 'gcc_version==44', {
283 'cflags': [ 287 'cflags': [
284 # Avoid crashes with gcc 4.4 in the v8 test suite. 288 # Avoid crashes with gcc 4.4 in the v8 test suite.
285 '-fno-tree-vrp', 289 '-fno-tree-vrp',
286 ], 290 ],
287 }], 291 }],
288 ], 292 ],
289 }], 293 }],
290 ['OS=="freebsd" or OS=="openbsd"', { 294 ['OS=="freebsd" or OS=="openbsd"', {
291 'cflags': [ '-I/usr/local/include' ], 295 'cflags': [ '-I/usr/local/include' ],
292 }], 296 }],
297 ['OS=="netbsd"', {
298 'cflags': [ '-I/usr/pkg/include -Wno-strict-aliasing' ],
299 }],
293 ['OS=="mac"', { 300 ['OS=="mac"', {
294 'xcode_settings': { 301 'xcode_settings': {
295 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 302 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
296 303
297 # -fstrict-aliasing. Mainline gcc 304 # -fstrict-aliasing. Mainline gcc
298 # enables this at -O2 and above, 305 # enables this at -O2 and above,
299 # but Apple gcc does not unless it 306 # but Apple gcc does not unless it
300 # is specified explicitly. 307 # is specified explicitly.
301 'GCC_STRICT_ALIASING': 'YES', 308 'GCC_STRICT_ALIASING': 'YES',
302 }, 309 },
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 # some test cases can cause stack overflow. 341 # some test cases can cause stack overflow.
335 # 'StackReserveSize': '297152', 342 # 'StackReserveSize': '297152',
336 }, 343 },
337 }, 344 },
338 }], 345 }],
339 ], 346 ],
340 }, 347 },
341 }, 348 },
342 }, 349 },
343 } 350 }
OLDNEW
« no previous file with comments | « no previous file | build/standalone.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698