| package(default_visibility = ["//visibility:public"]) | |
| cc_library( | |
| name = "pico_malloc", | |
| srcs = ["pico_malloc.c"], | |
| hdrs = ["include/pico/malloc.h"], | |
| includes = ["include"], | |
| linkopts = [ | |
| "-Wl,--wrap=malloc", | |
| "-Wl,--wrap=calloc", | |
| "-Wl,--wrap=realloc", | |
| "-Wl,--wrap=free", | |
| ], | |
| deps = [ | |
| "//src/common/pico_base", | |
| "//src/common/pico_sync", | |
| ], | |
| alwayslink = True, # Ensures the wrapped symbols are linked in. | |
| ) |