From 956b005853b49dcfa60422db364ecc0db6d57110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E8=B6=8A?= Date: Fri, 28 Jun 2024 17:59:24 +0800 Subject: [PATCH] [FLINK-35575] Disable PERF_CONTEXT by default in compilation --- FROCKSDB-RELEASE.md | 2 +- Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/FROCKSDB-RELEASE.md b/FROCKSDB-RELEASE.md index 2cd092d88..3f5b0a5cf 100644 --- a/FROCKSDB-RELEASE.md +++ b/FROCKSDB-RELEASE.md @@ -195,7 +195,7 @@ To start the crossbuild within a Mac OSX environment: cp /librocksdbjni-linux-ppc64le-musl.so java/target/librocksdbjni-linux-ppc64le-musl.so cp /librocksdbjni-linux-aarch64.so java/target/librocksdbjni-linux-aarch64.so cp /librocksdbjni-linux-aarch64-musl.so java/target/librocksdbjni-linux-aarch64-musl.so - FROCKSDB_VERSION=1.0 PORTABLE=1 ROCKSDB_DISABLE_JEMALLOC=true DEBUG_LEVEL=0 make frocksdbjavastaticreleasedocker + FROCKSDB_VERSION=1.0 PORTABLE=1 ROCKSDB_DISABLE_JEMALLOC=true DEBUG_LEVEL=0 DISABLE_PERF_CONTEXT=1 make frocksdbjavastaticreleasedocker *Note, we disable jemalloc on mac due to https://github.com/facebook/rocksdb/issues/5787*. diff --git a/Makefile b/Makefile index cafd48529..0becec995 100644 --- a/Makefile +++ b/Makefile @@ -429,6 +429,12 @@ ifndef DISABLE_JEMALLOC PLATFORM_CCFLAGS += $(JEMALLOC_INCLUDE) endif +DISABLE_PERF_CONTEXT ?= 0 +ifeq ($(DISABLE_PERF_CONTEXT),1) + PLATFORM_CXXFLAGS += -DNPERF_CONTEXT + PLATFORM_CCFLAGS += -DNPERF_CONTEXT +endif + ifndef USE_FOLLY USE_FOLLY=0 endif