OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 Loading... | |
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 } |
OLD | NEW |