diff options
author | Fabrice de Gans-Riberi <fdegans@chromium.org> | 2019-11-21 16:01:42 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-22 00:13:04 +0000 |
commit | ef98b330b71a64ef3a427b93fcfa92a76c06a597 (patch) | |
tree | 7269b4339fa662133d623918cf97f8ef2e2088cb /BUILD.gn | |
parent | be8cdf6c5b0a435f53e6d7a46e8fd7d9001eeda7 (diff) | |
download | openscreen-ef98b330b71a64ef3a427b93fcfa92a76c06a597.tar.gz |
Fix a build issue for platforms with different host and target toolchains.
The "tools/cddl" target is only defined for the host toolchain. As a
result, the "gn_all" target was failing to build properly on systems
with different host and target toolchains.
Change-Id: I1d18490442b9ed3aee8f76fd3cd7f13806a557c7
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/1929464
Reviewed-by: mark a. foltz <mfoltz@chromium.org>
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -23,10 +23,13 @@ group("gn_all") { "third_party/boringssl", "third_party/jsoncpp", "third_party/tinycbor", - "tools/cddl", "util", ] + if (current_toolchain == host_toolchain) { + deps += [ "tools/cddl" ] + } + if (use_mdns_responder) { deps += [ "osp/impl/discovery/mdns:mdns_demo" ] } |