Skip to content

Commit

Permalink
Leverage Abseil policy checks.
Browse files Browse the repository at this point in the history
These support a strict superset of the builds supported by TCMalloc.

PiperOrigin-RevId: 354327181
Change-Id: I67f1b1deada7c08948c471fbcbf67fba4445c766
  • Loading branch information
ckennelly authored and copybara-github committed Jan 28, 2021
1 parent b05cd9c commit 2cf75fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tcmalloc/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ cc_library(
hdrs = ["config.h"],
copts = TCMALLOC_DEFAULT_COPTS,
visibility = ["//tcmalloc:__subpackages__"],
deps = [
"@com_google_absl//absl/base:config",
],
)

cc_library(
Expand Down
2 changes: 2 additions & 0 deletions tcmalloc/internal/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <stddef.h>

#include "absl/base/policy_checks.h"

// TCMALLOC_HAVE_SCHED_GETCPU is defined when the system implements
// sched_getcpu(3) as by glibc and it's imitators.
#if defined(__linux__) || defined(__ros__)
Expand Down

0 comments on commit 2cf75fb

Please sign in to comment.