mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-30 06:58:08 +03:00
fix: build with --stamp
This commit is contained in:
parent
7f192e9919
commit
8949bbe68a
9 changed files with 16 additions and 95 deletions
|
|
@ -1,13 +1,14 @@
|
|||
load("@bazel_skylib//lib:selects.bzl", "selects")
|
||||
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
|
||||
load("//:tools/autoconf.bzl", "configure_header", "define_macro_if", "define_macro_with")
|
||||
load("//:tools/version.bzl", "parse_version")
|
||||
load("//tools:autoconf.bzl", "configure_header", "define_macro_if", "define_macro_with")
|
||||
load("//tools:version.bzl", "parse_version")
|
||||
|
||||
version = parse_version(module_version())
|
||||
|
||||
configure_header(
|
||||
name = "jemalloc_defs",
|
||||
out = "jemalloc_defs.h",
|
||||
stamp = 0,
|
||||
substitutions =
|
||||
define_macro_if("JEMALLOC_HAVE_ATTR_ALLOC_SIZE", "//settings/compiler:gcc_compatible") |
|
||||
define_macro_if("JEMALLOC_HAVE_ATTR_FORMAT_ARG", "//settings/compiler:gcc_compatible") |
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template")
|
||||
load("@bazel_skylib//lib:selects.bzl", "selects")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//:tools/autoconf.bzl", "configure_header", "define_macro_if", "define_macro_if_any", "define_macro_if_with", "define_macro", "define_macro_with", "undefine_macro")
|
||||
load("//:tools/version.bzl", "parse_version")
|
||||
load("//tools:autoconf.bzl", "configure_header", "define_macro", "define_macro_if", "define_macro_if_any", "define_macro_if_with", "define_macro_with", "undefine_macro")
|
||||
load("//tools:version.bzl", "parse_version")
|
||||
load(":private_namespace.bzl", "private_namespace")
|
||||
load(":public_symbols.bzl", "public_symbols")
|
||||
|
||||
|
|
@ -148,6 +148,7 @@ cc_library(
|
|||
expand_template(
|
||||
name = "jemalloc_preamble",
|
||||
out = "jemalloc_preamble.h",
|
||||
stamp = 0,
|
||||
substitutions = {
|
||||
"@install_suffix@": "",
|
||||
"@private_namespace@": "je_",
|
||||
|
|
@ -224,6 +225,7 @@ selects.config_setting_group(
|
|||
configure_header(
|
||||
name = "jemalloc_internal_defs",
|
||||
out = "jemalloc_internal_defs.h",
|
||||
stamp = 0,
|
||||
substitutions =
|
||||
select({
|
||||
"//settings/flags:no_jemalloc_prefix": undefine_macro("JEMALLOC_PREFIX") |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue