blob: 2e46995576f93afe712c1335ca8c6bc077ddc627 [file] [log] [blame]
# Copyright 2025 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/bazel/bazel_build_action.gni")
# Building this target will currently fail because without `host = true` it will
# attempt to generate a Fuchsia C++ binary, which will fail because
# `no_sdk = true` implies that there is no C library or fdio.so available to
# link to.
#
# See //build/bazel/examples/hello_world for a similar example that builds for
# the host successfully.
#
# TODO(ddorwin): Make the Bazel target something that can be built without the
# SDK (i.e., not a C binary).
bazel_build_action("hello_no_sdk") {
no_sdk = true
bazel_target = ":hello_no_sdk"
copy_outputs = [
{
bazel = "{{BAZEL_TARGET_OUT_DIR}}/{{BAZEL_TARGET_NAME}}"
ninja = "hello_no_sdk_from_bazel"
},
]
}