-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
i use bazel's malloc option to link mimalloc,and the compilation of mimaloc is as follows
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",
"-O2",
"-Wall",
"-Wextra",
"--std=c++17",
],
linkopts = [
"-pthread",
"-lrt",
],
visibility = ["//visibility:public"],
)
because of the global variable initialization order,i find i can't control mi_process_load function execute before mi_malloc,What should I do?
Metadata
Metadata
Assignees
Labels
No labels