| load("@rules_cc//cc:cc_library.bzl", "cc_library") | |
| load("//bazel:defs.bzl", "compatible_with_rp2") | |
| package(default_visibility = ["//visibility:public"]) | |
| cc_library( | |
| name = "pico_atomic", | |
| srcs = ["atomic.c"], | |
| hdrs = ["include/stdatomic.h"], | |
| copts = ["-Wno-atomic-alignment"], | |
| includes = ["include"], | |
| target_compatible_with = compatible_with_rp2(), | |
| deps = ["//src/common/pico_sync"], | |
| ) |