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

Side by Side Diff: tools/gyp/v8.gyp

Issue 1543003: - Fix V8 for FreeBSD & OpenBSD on i386 (32-bit), same ABI as Mac... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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 | « src/ia32/codegen-ia32.cc ('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 2009 the V8 project authors. All rights reserved. 1 # Copyright 2009 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 ], 67 ],
68 'msvs_settings': { 68 'msvs_settings': {
69 'VCCLCompilerTool': { 69 'VCCLCompilerTool': {
70 'Optimizations': '0', 70 'Optimizations': '0',
71 'RuntimeLibrary': '1', 71 'RuntimeLibrary': '1',
72 }, 72 },
73 'VCLinkerTool': { 73 'VCLinkerTool': {
74 'LinkIncremental': '2', 74 'LinkIncremental': '2',
75 }, 75 },
76 }, 76 },
77 'conditions': [
78 ['OS=="freebsd" or OS=="openbsd"', {
79 'cflags': [ '-I/usr/local/include' ],
80 }],
81 ],
77 }, 82 },
78 'Release': { 83 'Release': {
79 'conditions': [ 84 'conditions': [
80 ['OS=="linux"', { 85 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
81 'cflags!': [ 86 'cflags!': [
82 '-O2', 87 '-O2',
83 '-Os', 88 '-Os',
84 ], 89 ],
85 'cflags': [ 90 'cflags': [
86 '-fomit-frame-pointer', 91 '-fomit-frame-pointer',
87 '-O3', 92 '-O3',
88 ], 93 ],
89 'conditions': [ 94 'conditions': [
90 [ 'gcc_version==44', { 95 [ 'gcc_version==44', {
91 'cflags': [ 96 'cflags': [
92 # Avoid gcc 4.4 strict aliasing issues in dtoa.c 97 # Avoid gcc 4.4 strict aliasing issues in dtoa.c
93 '-fno-strict-aliasing', 98 '-fno-strict-aliasing',
94 # Avoid crashes with gcc 4.4 in the v8 test suite. 99 # Avoid crashes with gcc 4.4 in the v8 test suite.
95 '-fno-tree-vrp', 100 '-fno-tree-vrp',
96 ], 101 ],
97 }], 102 }],
98 ], 103 ],
99 }], 104 }],
105 ['OS=="freebsd" or OS=="openbsd"', {
106 'cflags': [ '-I/usr/local/include' ],
107 }],
100 ['OS=="mac"', { 108 ['OS=="mac"', {
101 'xcode_settings': { 109 'xcode_settings': {
102 'GCC_OPTIMIZATION_LEVEL': '3', # -O3 110 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
103 'GCC_STRICT_ALIASING': 'YES', # -fstrict-aliasing. Mainline gcc 111 'GCC_STRICT_ALIASING': 'YES', # -fstrict-aliasing. Mainline gcc
104 # enables this at -O2 and above, 112 # enables this at -O2 and above,
105 # but Apple gcc does not unless it 113 # but Apple gcc does not unless it
106 # is specified explicitly. 114 # is specified explicitly.
107 }, 115 },
108 }], 116 }],
109 ['OS=="win"', { 117 ['OS=="win"', {
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 'libraries': [ 542 'libraries': [
535 # Needed for clock_gettime() used by src/platform-linux.cc. 543 # Needed for clock_gettime() used by src/platform-linux.cc.
536 '-lrt', 544 '-lrt',
537 ]}, 545 ]},
538 'sources': [ 546 'sources': [
539 '../../src/platform-linux.cc', 547 '../../src/platform-linux.cc',
540 '../../src/platform-posix.cc' 548 '../../src/platform-posix.cc'
541 ], 549 ],
542 } 550 }
543 ], 551 ],
552 ['OS=="freebsd"', {
553 'link_settings': {
554 'libraries': [
555 '-L/usr/local/lib -lexecinfo',
556 ]},
557 'sources': [
558 '../../src/platform-freebsd.cc',
559 '../../src/platform-posix.cc'
560 ],
561 }
562 ],
544 ['OS=="openbsd"', { 563 ['OS=="openbsd"', {
545 'link_settings': { 564 'link_settings': {
546 'libraries': [ 565 'libraries': [
547 '-L/usr/local/lib -lexecinfo', 566 '-L/usr/local/lib -lexecinfo',
548 ]}, 567 ]},
549 'sources': [ 568 'sources': [
550 '../../src/platform-openbsd.cc', 569 '../../src/platform-openbsd.cc',
551 '../../src/platform-posix.cc' 570 '../../src/platform-posix.cc'
552 ], 571 ],
553 } 572 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 ], 670 ],
652 'conditions': [ 671 'conditions': [
653 [ 'OS=="win"', { 672 [ 'OS=="win"', {
654 # This could be gotten by not setting chromium_code, if that's OK. 673 # This could be gotten by not setting chromium_code, if that's OK.
655 'defines': ['_CRT_SECURE_NO_WARNINGS'], 674 'defines': ['_CRT_SECURE_NO_WARNINGS'],
656 }], 675 }],
657 ], 676 ],
658 }, 677 },
659 ], 678 ],
660 } 679 }
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698