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

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

Issue 1957523005: clang/win/gn: Actually build 32-bit .obj files in 32-bit builds. (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
« 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 (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.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 toolchain_cpu = "x86" 275 toolchain_cpu = "x86"
276 cl = "${goma_prefix}\"${x86_toolchain_data.vc_bin_dir}/cl.exe\"" 276 cl = "${goma_prefix}\"${x86_toolchain_data.vc_bin_dir}/cl.exe\""
277 is_clang = false 277 is_clang = false
278 } 278 }
279 279
280 msvc_toolchain("clang_x86") { 280 msvc_toolchain("clang_x86") {
281 environment = "environment.x86" 281 environment = "environment.x86"
282 toolchain_cpu = "x86" 282 toolchain_cpu = "x86"
283 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", 283 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
284 root_build_dir) 284 root_build_dir)
285 cl = "${goma_prefix}$prefix/${clang_cl}" 285 cl = "${goma_prefix}$prefix/${clang_cl} -m32"
Dirk Pranke 2016/05/06 15:53:58 Shouldn't this already be being set here: https:/
Nico 2016/05/06 16:21:33 Oh, great point! It seems to not always have an ef
Nico 2016/05/06 20:10:21 mini_installer does configs -= [ "//build/confi
286 toolchain_os = "win" 286 toolchain_os = "win"
287 is_clang = true 287 is_clang = true
288 } 288 }
289 } 289 }
290 290
291 # 64-bit toolchains. 291 # 64-bit toolchains.
292 x64_toolchain_data = exec_script("setup_toolchain.py", 292 x64_toolchain_data = exec_script("setup_toolchain.py",
293 [ 293 [
294 visual_studio_path, 294 visual_studio_path,
295 gyp_win_tool_path, 295 gyp_win_tool_path,
(...skipping 18 matching lines...) Expand all
314 is_clang = false 314 is_clang = false
315 315
316 forward_variables_from(invoker, [ "is_component_build" ]) 316 forward_variables_from(invoker, [ "is_component_build" ])
317 } 317 }
318 318
319 msvc_toolchain("clang_" + target_name) { 319 msvc_toolchain("clang_" + target_name) {
320 environment = "environment.x64" 320 environment = "environment.x64"
321 toolchain_cpu = "x64" 321 toolchain_cpu = "x64"
322 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", 322 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
323 root_build_dir) 323 root_build_dir)
324 cl = "${goma_prefix}$prefix/${clang_cl}" 324 cl = "${goma_prefix}$prefix/${clang_cl} -m64"
325 toolchain_os = "win" 325 toolchain_os = "win"
326 is_clang = true 326 is_clang = true
327 327
328 forward_variables_from(invoker, [ "is_component_build" ]) 328 forward_variables_from(invoker, [ "is_component_build" ])
329 } 329 }
330 } 330 }
331 331
332 win_x64_toolchains("x64") { 332 win_x64_toolchains("x64") {
333 # TODO(mcgrathr): These assignments are only required because of 333 # TODO(mcgrathr): These assignments are only required because of
334 # crbug.com/395883. Drop them if that ever gets fixed in GN. 334 # crbug.com/395883. Drop them if that ever gets fixed in GN.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 msvc_toolchain("winrt_x64") { 372 msvc_toolchain("winrt_x64") {
373 environment = "environment.winrt_x64" 373 environment = "environment.winrt_x64"
374 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 374 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
375 is_clang = false 375 is_clang = false
376 376
377 toolchain_cpu = "x64" 377 toolchain_cpu = "x64"
378 toolchain_os = current_os 378 toolchain_os = current_os
379 } 379 }
380 } 380 }
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