From cdaa9576bbfe788bfd893c247334c6728ad6222c Mon Sep 17 00:00:00 2001 From: Peter Dillinger Date: Thu, 12 May 2022 22:54:18 -0700 Subject: [PATCH] Put build size checking logic in Makefile (#9989) Summary: ... for better maintainability, in case of Makefile changes / refactoring. This is lightly modified from rocksd-lego-determinator, and will be used by Meta-internal CI with custom REPORT_BUILD_STATISTIC Pull Request resolved: https://github.com/facebook/rocksdb/pull/9989 Test Plan: some manual stuff Reviewed By: jay-zhuang Differential Revision: D36362362 Pulled By: pdillinger fbshipit-source-id: 52b65b6282fe839dc6d906ff95a3ed66ca1574ba --- Makefile | 47 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 93a67b654..da4809800 100644 --- a/Makefile +++ b/Makefile @@ -795,17 +795,10 @@ $(SHARED4): $(LIB_OBJECTS) $(AM_V_CCLD) $(CXX) $(PLATFORM_SHARED_LDFLAGS)$(SHARED3) $(LIB_OBJECTS) $(LDFLAGS) -o $@ endif # PLATFORM_SHARED_EXT -.PHONY: blackbox_crash_test check clean coverage crash_test ldb_tests package \ - release tags tags0 valgrind_check whitebox_crash_test format static_lib shared_lib all \ - dbg rocksdbjavastatic rocksdbjava gen-pc install install-static install-shared uninstall \ - analyze tools tools_lib check-headers checkout_folly \ - blackbox_crash_test_with_atomic_flush whitebox_crash_test_with_atomic_flush \ - blackbox_crash_test_with_txn whitebox_crash_test_with_txn \ - blackbox_crash_test_with_best_efforts_recovery \ - blackbox_crash_test_with_ts whitebox_crash_test_with_ts \ - blackbox_crash_test_with_multiops_wc_txn \ - blackbox_crash_test_with_multiops_wp_txn - +.PHONY: check clean coverage ldb_tests package dbg gen-pc build_size \ + release tags tags0 valgrind_check format static_lib shared_lib all \ + rocksdbjavastatic rocksdbjava install install-static install-shared \ + uninstall analyze tools tools_lib check-headers checkout_folly all: $(LIBRARY) $(BENCHMARKS) tools tools_lib test_libs $(TESTS) @@ -2353,6 +2346,38 @@ checkout_folly: @# NOTE: this hack is not needed if using FBCODE compiler config perl -pi -e 's/^(#include