Skip to content

Instantly share code, notes, and snippets.

@rockwotj
Created June 22, 2022 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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