GN: ChromeOS: Wrong compiler used while building with clang |
|||
Issue descriptionWe are working on the migration to Clang for ChromeOS. Since GN was made the default we are getting an error in the clang build which I traced to a TODO in the following file. https://cs.chromium.org/chromium/src/native_client/src/trusted/service_runtime/linux/BUILD.gn?sq=package:chromium dpranke proposed I tried the following which seemed to work. Please provide a CL for this. diff --git a/src/trusted/service_runtime/linux/BUILD.gn b/src/trusted/service_runtime/linux/BUILD.gn index ce2923b..a7067c9 100644 --- a/src/trusted/service_runtime/linux/BUILD.gn +++ b/src/trusted/service_runtime/linux/BUILD.gn @@ -18,7 +18,8 @@ # TODO(dpranke): There needs to be a better way to determine if # we are using the custom CrOS toolchains, but for now we check is_clang, # which is the same way we check in //build/config/BUILDCONFIG.gn. -_is_cros_target_toolchain = is_chromeos && !is_clang +#_is_cros_target_toolchain = is_chromeos && !is_clang +_is_cros_target_toolchain = (custom_toolchain == "//build/toolchain/cros:target") if (target_os == "chromeos") { import("//build/toolchain/cros_toolchain.gni") }
,
Aug 12 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/7f24256b210c705280eba663592e10adf94fd3d3 commit 7f24256b210c705280eba663592e10adf94fd3d3 Author: nacl-deps-roller <nacl-deps-roller@chromium.org> Date: Fri Aug 12 20:37:30 2016 Roll src/native_client/ f572c0076..17d37b19f (1 commit). https://chromium.googlesource.com/native_client/src/native_client.git/+log/f572c0076316..17d37b19f25e $ git log f572c0076..17d37b19f --date=short --no-merges --format='%ad %ae %s' 2016-08-12 dpranke Rework checks for the CrOS toolchains for nacl_bootstrap toolchain. BUG= 632279 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_dbg_32_ng,linux_nacl_sdk_build TBR=mseaborn@chromium.org Review-Url: https://codereview.chromium.org/2246533002 Cr-Commit-Position: refs/heads/master@{#411758} [modify] https://crrev.com/7f24256b210c705280eba663592e10adf94fd3d3/DEPS
,
Aug 30 2016
Is this fixed now? I think it is ... if it isn't, I've forgotten what else we need to do :).
,
Aug 30 2016
,
Sep 1 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Aug 3 2016