blob: 7aa6bae54d88956042aac11b05ec9bf076680bb5 [file] [log] [blame]
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:pico_base_interface",
"//src/common/pico_sync",
],
alwayslink = True, # Ensures the wrapped symbols are linked in.
)