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

Side by Side Diff: build/toolchain.gypi

Issue 240473003: Ability to force position-independent code generation. (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | 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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 'mips_arch_variant%': 'mips32r2', 59 'mips_arch_variant%': 'mips32r2',
60 60
61 'v8_enable_backtrace%': 0, 61 'v8_enable_backtrace%': 0,
62 62
63 # Enable profiling support. Only required on Windows. 63 # Enable profiling support. Only required on Windows.
64 'v8_enable_prof%': 0, 64 'v8_enable_prof%': 0,
65 65
66 # Some versions of GCC 4.5 seem to need -fno-strict-aliasing. 66 # Some versions of GCC 4.5 seem to need -fno-strict-aliasing.
67 'v8_no_strict_aliasing%': 0, 67 'v8_no_strict_aliasing%': 0,
68 68
69 # When you are statically embedding V8 into a shared library, you might
70 # need to force position-independent code generation.
71 'v8_force_pic%': 0,
72
69 # Chrome needs this definition unconditionally. For standalone V8 builds, 73 # Chrome needs this definition unconditionally. For standalone V8 builds,
70 # it's handled in build/standalone.gypi. 74 # it's handled in build/standalone.gypi.
71 'want_separate_host_toolset%': 1, 75 'want_separate_host_toolset%': 1,
72 76
73 # Toolset the d8 binary should be compiled for. Possible values are 'host' 77 # Toolset the d8 binary should be compiled for. Possible values are 'host'
74 # and 'target'. If you want to run v8 tests, it needs to be set to 'target'. 78 # and 'target'. If you want to run v8 tests, it needs to be set to 'target'.
75 # The setting is ignored if want_separate_host_toolset is 0. 79 # The setting is ignored if want_separate_host_toolset is 0.
76 'v8_toolset_for_d8%': 'target', 80 'v8_toolset_for_d8%': 'target',
77 81
78 'host_os%': '<(OS)', 82 'host_os%': '<(OS)',
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 'GenerateMapFile': 'true', 420 'GenerateMapFile': 'true',
417 }, 421 },
418 }, 422 },
419 }], 423 }],
420 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 424 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
421 or OS=="netbsd" or OS=="qnx"', { 425 or OS=="netbsd" or OS=="qnx"', {
422 'conditions': [ 426 'conditions': [
423 [ 'v8_no_strict_aliasing==1', { 427 [ 'v8_no_strict_aliasing==1', {
424 'cflags': [ '-fno-strict-aliasing' ], 428 'cflags': [ '-fno-strict-aliasing' ],
425 }], 429 }],
430 [ 'v8_force_pic==1', {
431 'cflags': [ '-fPIC' ],
432 }],
426 ], # conditions 433 ], # conditions
427 }], 434 }],
428 ['OS=="solaris"', { 435 ['OS=="solaris"', {
429 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. 436 'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
430 }], 437 }],
431 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 438 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
432 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ 439 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
433 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ 440 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \
434 v8_target_arch=="mips" or v8_target_arch=="mipsel")', { 441 v8_target_arch=="mips" or v8_target_arch=="mipsel")', {
435 # Check whether the host compiler and target compiler support the 442 # Check whether the host compiler and target compiler support the
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 'OptimizeReferences': '2', 798 'OptimizeReferences': '2',
792 'EnableCOMDATFolding': '2', 799 'EnableCOMDATFolding': '2',
793 }, 800 },
794 }, 801 },
795 }], # OS=="win" 802 }], # OS=="win"
796 ], # conditions 803 ], # conditions
797 }, # Release 804 }, # Release
798 }, # configurations 805 }, # configurations
799 }, # target_defaults 806 }, # target_defaults
800 } 807 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698