mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 08:03:32 +03:00
chore: cross-platform jemalloc.h generation and Bazel 9 support (#3)
- Replace jemalloc.h genrule with cross-platform cc_binary (jemalloc_hdr_gen) - Migrate all rules_cc imports from defs.bzl compat shim to granular paths - Add sh_binary targets for shell script genrules - Pin MODULE.bazel deps to minimum versions required by Bazel 8 - Add bazel_lib and rules_shell dependencies - Rename jemalloc_core to lib/jemalloc for conventional output naming
This commit is contained in:
parent
db4f5f7461
commit
11ab2d4f38
18 changed files with 222 additions and 3418 deletions
|
|
@ -1,5 +1,5 @@
|
|||
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("//tools:cc.bzl", "COPTS")
|
||||
|
||||
expand_template(
|
||||
|
|
@ -85,7 +85,7 @@ cc_library(
|
|||
),
|
||||
tags = ["manual"],
|
||||
visibility = ["//test:__subpackages__"],
|
||||
deps = ["//:jemalloc_core"] + select(
|
||||
deps = ["//:lib/jemalloc"] + select(
|
||||
{
|
||||
"//settings:integration_test": ["//:utils"],
|
||||
"//settings:integration_cpp_test": ["//:utils"],
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("@rules_cc//cc:cc_test.bzl", "cc_test")
|
||||
load("//tools:cc.bzl", "COPTS")
|
||||
load("//tools:test.bzl", "join_conf", "test_name")
|
||||
load("//tools:transition.bzl", "PLATFORM", "transition_default_constraints")
|
||||
|
|
@ -67,6 +67,7 @@ INTEGRATION_PROF_TESTS = [
|
|||
test.get("conf"),
|
||||
config["conf"],
|
||||
),
|
||||
"flaky": test["src"] == "extent.c",
|
||||
"target_compatible_with": select({
|
||||
"//settings/flags:prof": [],
|
||||
"//conditions:default": ["@platforms//:incompatible"],
|
||||
|
|
@ -108,6 +109,7 @@ transition_default_constraints(
|
|||
env = {"JE_TEST_MALLOC_CONF": test.get("conf", "")},
|
||||
local_defines = ["JEMALLOC_INTEGRATION_TEST"],
|
||||
target_compatible_with = test.get("target_compatible_with", []),
|
||||
flaky = test.get("flaky", False),
|
||||
deps = [":testlib"],
|
||||
) for test in INTEGRATION_TESTS + INTEGRATION_DECAY_TESTS + INTEGRATION_PROF_TESTS]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("@rules_cc//cc:cc_test.bzl", "cc_test")
|
||||
load("//tools:cc.bzl", "COPTS")
|
||||
load("//tools:test.bzl", "join_conf", "test_name")
|
||||
load("//tools:transition.bzl", "PLATFORM", "transition_default_constraints")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue