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

Side by Side Diff: build/toolchain/win/BUILD.gn

Issue 1925843002: Make the GN build flag 'use_lld' usable on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 import("//build/config/win/visual_studio_version.gni") 6 import("//build/config/win/visual_studio_version.gni")
7 import("//build/toolchain/goma.gni") 7 import("//build/toolchain/goma.gni")
8 import("//build/toolchain/toolchain.gni") 8 import("//build/toolchain/toolchain.gni")
9 9
10 # Should only be running on Windows. 10 # Should only be running on Windows.
11 assert(is_win) 11 assert(is_win)
12 12
13 declare_args() {
14 # Set to true to use lld, the LLVM linker.
15 use_lld = false
16 }
17
18 # Setup the Visual Studio state. 13 # Setup the Visual Studio state.
19 # 14 #
20 # Its arguments are the VS path and the compiler wrapper tool. It will write 15 # Its arguments are the VS path and the compiler wrapper tool. It will write
21 # "environment.x86" and "environment.x64" to the build directory and return a 16 # "environment.x86" and "environment.x64" to the build directory and return a
22 # list to us. 17 # list to us.
23 gyp_win_tool_path = 18 gyp_win_tool_path =
24 rebase_path("//tools/gyp/pylib/gyp/win_tool.py", root_build_dir) 19 rebase_path("//tools/gyp/pylib/gyp/win_tool.py", root_build_dir)
25 20
26 if (use_goma) { 21 if (use_goma) {
27 goma_prefix = "$goma_dir/gomacc.exe " 22 goma_prefix = "$goma_dir/gomacc.exe "
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 371
377 msvc_toolchain("winrt_x64") { 372 msvc_toolchain("winrt_x64") {
378 environment = "environment.winrt_x64" 373 environment = "environment.winrt_x64"
379 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 374 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
380 is_clang = false 375 is_clang = false
381 376
382 toolchain_cpu = "x64" 377 toolchain_cpu = "x64"
383 toolchain_os = current_os 378 toolchain_os = current_os
384 } 379 }
385 } 380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698