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 5986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5997 ['CC', '<(make_clang_dir)/bin/clang-cl'], | 5997 ['CC', '<(make_clang_dir)/bin/clang-cl'], |
5998 ], | 5998 ], |
5999 }], | 5999 }], |
6000 ['use_lld==1 and OS=="win"', { | 6000 ['use_lld==1 and OS=="win"', { |
6001 'make_global_settings': [ | 6001 'make_global_settings': [ |
6002 # Limited to Windows because lld-link is the driver that is | 6002 # Limited to Windows because lld-link is the driver that is |
6003 # compatible with link.exe. | 6003 # compatible with link.exe. |
6004 ['LD', '<(make_clang_dir)/bin/lld-link'], | 6004 ['LD', '<(make_clang_dir)/bin/lld-link'], |
6005 ], | 6005 ], |
6006 }], | 6006 }], |
6007 ['clang==1 and use_lto==1 and OS=="win"', { | |
6008 'make_global_settings': [ | |
6009 # llvm-lib is a replacement for lib.exe that understands bitcode. | |
Nico
2015/11/11 05:00:00
we don't bundle this, do we? how big is it?
pcc1
2015/11/11 20:22:10
Hm, since we do apparently bundle lld-link and lld
| |
6010 ['AR', '<(make_clang_dir)/bin/llvm-lib'], | |
6011 ], | |
6012 }], | |
6007 ['OS=="android" and clang==0', { | 6013 ['OS=="android" and clang==0', { |
6008 # Hardcode the compiler names in the Makefile so that | 6014 # Hardcode the compiler names in the Makefile so that |
6009 # it won't depend on the environment at make time. | 6015 # it won't depend on the environment at make time. |
6010 'make_global_settings': [ | 6016 'make_global_settings': [ |
6011 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'], | 6017 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'], |
6012 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'], | 6018 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'], |
6013 ['CC.host', '<(host_cc)'], | 6019 ['CC.host', '<(host_cc)'], |
6014 ['CXX.host', '<(host_cxx)'], | 6020 ['CXX.host', '<(host_cxx)'], |
6015 ], | 6021 ], |
6016 }], | 6022 }], |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6080 }], | 6086 }], |
6081 ['use_lto==1 and clang==1', { | 6087 ['use_lto==1 and clang==1', { |
6082 'target_defaults': { | 6088 'target_defaults': { |
6083 'target_conditions': [ | 6089 'target_conditions': [ |
6084 ['_toolset=="target"', { | 6090 ['_toolset=="target"', { |
6085 'arflags': [ | 6091 'arflags': [ |
6086 '--plugin', '../../<(make_clang_dir)/lib/LLVMgold.so', | 6092 '--plugin', '../../<(make_clang_dir)/lib/LLVMgold.so', |
6087 ], | 6093 ], |
6088 }], | 6094 }], |
6089 ], | 6095 ], |
6096 'msvs_settings': { | |
6097 'VCCLCompilerTool': { | |
6098 'AdditionalOptions': [ | |
6099 '-Xclang', | |
6100 '-emit-llvm-bc', | |
6101 ], | |
6102 }, | |
6103 }, | |
6090 }, | 6104 }, |
6091 }], | 6105 }], |
6092 # Apply a lower LTO optimization level as the default is too slow. | 6106 # Apply a lower LTO optimization level as the default is too slow. |
6093 ['use_lto==1 and clang==1', { | 6107 ['use_lto==1 and clang==1', { |
6094 'target_defaults': { | 6108 'target_defaults': { |
6095 'target_conditions': [ | 6109 'target_conditions': [ |
6096 ['_toolset=="target"', { | 6110 ['_toolset=="target"', { |
6097 'ldflags': [ | 6111 'ldflags': [ |
6098 '-Wl,--plugin-opt,O1', | 6112 '-Wl,--plugin-opt,O1', |
6099 ], | 6113 ], |
6100 }], | 6114 }], |
6101 ['_toolset=="target" and _type!="static_library"', { | 6115 ['_toolset=="target" and _type!="static_library"', { |
6102 'xcode_settings': { | 6116 'xcode_settings': { |
6103 'OTHER_LDFLAGS': [ | 6117 'OTHER_LDFLAGS': [ |
6104 '-Wl,-mllvm,-O1', | 6118 '-Wl,-mllvm,-O1', |
6105 ], | 6119 ], |
6106 }, | 6120 }, |
6107 }], | 6121 }], |
6108 ], | 6122 ], |
6123 'msvs_settings': { | |
6124 'VCLinkerTool': { | |
6125 'AdditionalOptions': [ | |
6126 '/opt:lldlto=1', | |
6127 ], | |
6128 }, | |
6129 }, | |
6109 }, | 6130 }, |
6110 }], | 6131 }], |
6111 ['use_lto==1 and clang==1 and target_arch=="arm"', { | 6132 ['use_lto==1 and clang==1 and target_arch=="arm"', { |
6112 'target_defaults': { | 6133 'target_defaults': { |
6113 'target_conditions': [ | 6134 'target_conditions': [ |
6114 ['_toolset=="target"', { | 6135 ['_toolset=="target"', { |
6115 # Without this flag, LTO produces a .text section that is larger | 6136 # Without this flag, LTO produces a .text section that is larger |
6116 # than the maximum call displacement, preventing the linker from | 6137 # than the maximum call displacement, preventing the linker from |
6117 # relocating calls (http://llvm.org/PR22999). | 6138 # relocating calls (http://llvm.org/PR22999). |
6118 'ldflags': [ | 6139 'ldflags': [ |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6308 # settings in target dicts. SYMROOT is a special case, because many other | 6329 # settings in target dicts. SYMROOT is a special case, because many other |
6309 # Xcode variables depend on it, including variables such as | 6330 # Xcode variables depend on it, including variables such as |
6310 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6331 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6311 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6332 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6312 # files to appear (when present) in the UI as actual files and not red | 6333 # files to appear (when present) in the UI as actual files and not red |
6313 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6334 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6314 # and therefore SYMROOT, needs to be set at the project level. | 6335 # and therefore SYMROOT, needs to be set at the project level. |
6315 'SYMROOT': '<(DEPTH)/xcodebuild', | 6336 'SYMROOT': '<(DEPTH)/xcodebuild', |
6316 }, | 6337 }, |
6317 } | 6338 } |
OLD | NEW |