Skip to content

Instantly share code, notes, and snippets.

@rockwotj
Created June 22, 2022 03:44
Show Gist options
  • Save rockwotj/aa453c0c8bf9c697eb027619b58d6652 to your computer and use it in GitHub Desktop.
Save rockwotj/aa453c0c8bf9c697eb027619b58d6652 to your computer and use it in GitHub Desktop.
BUILD.bazel for Mimalloc to use in cc_binary(malloc = ...)
cc_library(
name = "mimalloc",
srcs = ["src/static.c"],
textual_hdrs = glob(["src/*.c", "src/*.h"], exclude = ["src/static.c"]),
hdrs = glob(["include/*.h"]),
includes = ["include"],
copts = ["-DMI_MALLOC_OVERRIDE"],
visibility = ["//visibility:public"],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment