pico-sdk/test/hardware_sync_spin_lock_test/BUILD.bazel
armandomontanez 6262b49c74
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
[bazel] Run buildifier on Bazel build files (#2825)
This is an automated change with the following commands:

$ find . -name "BUILD.bazel" -o -name "*.bzl" \
  -exec buildifier -lint=fix {} \;

* Add missing `load()` statements for things provided by @rules_cc. This
  is required for Bazel >9.
* Sort attributes on build targets.
* Add missing trailing commas where applicable.
2026-03-02 10:24:17 +00:00

27 lines
835 B
Text

load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("//bazel:defs.bzl", "compatible_with_rp2")
load("//bazel/util:transition.bzl", "extra_copts_for_all_deps")
package(default_visibility = ["//visibility:public"])
cc_binary(
name = "hardware_sync_spin_lock_test_actual",
testonly = True,
srcs = ["hardware_sync_spin_lock_test.c"],
tags = ["manual"],
deps = [
"//src/rp2_common/hardware_sync",
"//src/rp2_common/hardware_sync_spin_lock",
"//src/rp2_common/pico_multicore",
"//src/rp2_common/pico_stdio",
"//test/pico_test",
],
)
extra_copts_for_all_deps(
name = "hardware_sync_spin_lock_test",
testonly = True,
src = ":hardware_sync_spin_lock_test_actual",
extra_copts = ["-DPICO_STDOUT_MUTEX=0"],
target_compatible_with = compatible_with_rp2(),
)