Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # IMPORTANT: | 5 # IMPORTANT: |
| 6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
| 7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
| 8 { | 8 { |
| 9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
| 10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
| (...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2529 '-fomit-frame-pointer', | 2529 '-fomit-frame-pointer', |
| 2530 '-fdata-sections', | 2530 '-fdata-sections', |
| 2531 '-ffunction-sections', | 2531 '-ffunction-sections', |
| 2532 ], | 2532 ], |
| 2533 'ldflags': [ | 2533 'ldflags': [ |
| 2534 '-Wl,-O1', | 2534 '-Wl,-O1', |
| 2535 '-Wl,--as-needed', | 2535 '-Wl,--as-needed', |
| 2536 '-Wl,--gc-sections', | 2536 '-Wl,--gc-sections', |
| 2537 ], | 2537 ], |
| 2538 }], | 2538 }], |
| 2539 ['OS=="linux" and target_arch=="ia32"', { | |
|
Lei Zhang
2013/03/12 01:19:22
This should be conditioned on linux_use_gold_binar
| |
| 2540 'ldflags': [ | |
| 2541 '-Wl,--no-as-needed', | |
| 2542 ], | |
| 2543 }], | |
| 2539 ], | 2544 ], |
| 2540 }, | 2545 }, |
| 2541 'Release_Base': { | 2546 'Release_Base': { |
| 2542 'variables': { | 2547 'variables': { |
| 2543 'release_optimize%': '2', | 2548 'release_optimize%': '2', |
| 2544 # Binaries become big and gold is unable to perform GC | 2549 # Binaries become big and gold is unable to perform GC |
| 2545 # and remove unused sections for some of test targets | 2550 # and remove unused sections for some of test targets |
| 2546 # on 32 bit platform. | 2551 # on 32 bit platform. |
| 2547 # (This is currently observed only in chromeos valgrind bots) | 2552 # (This is currently observed only in chromeos valgrind bots) |
| 2548 # The following flag is to disable --gc-sections linker | 2553 # The following flag is to disable --gc-sections linker |
| (...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4111 # settings in target dicts. SYMROOT is a special case, because many other | 4116 # settings in target dicts. SYMROOT is a special case, because many other |
| 4112 # Xcode variables depend on it, including variables such as | 4117 # Xcode variables depend on it, including variables such as |
| 4113 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4118 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4114 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4119 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4115 # files to appear (when present) in the UI as actual files and not red | 4120 # files to appear (when present) in the UI as actual files and not red |
| 4116 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4121 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4117 # and therefore SYMROOT, needs to be set at the project level. | 4122 # and therefore SYMROOT, needs to be set at the project level. |
| 4118 'SYMROOT': '<(DEPTH)/xcodebuild', | 4123 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4119 }, | 4124 }, |
| 4120 } | 4125 } |
| OLD | NEW |