From 0ada579f31e33d8e9144e75489c0beb9e8a17a21 Mon Sep 17 00:00:00 2001 From: "Andrew V. Jones" Date: Tue, 16 Mar 2021 05:36:02 -0700 Subject: [PATCH] Patch missing 'limits' in facebook-clang-plugins #1407 (#1409) Summary: Hopefully resolves https://github.com/facebook/infer/issues/1407 Signed-off-by: Andrew V. Jones Pull Request resolved: https://github.com/facebook/infer/pull/1409 Reviewed By: skcho Differential Revision: D27079201 Pulled By: jvillard fbshipit-source-id: d5777a35c --- facebook-clang-plugins/clang/setup.sh | 1 + .../clang/src/benchmark_register.patch | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 facebook-clang-plugins/clang/src/benchmark_register.patch diff --git a/facebook-clang-plugins/clang/setup.sh b/facebook-clang-plugins/clang/setup.sh index 6573f1927..2d7297e97 100755 --- a/facebook-clang-plugins/clang/setup.sh +++ b/facebook-clang-plugins/clang/setup.sh @@ -16,6 +16,7 @@ CLANG_PREBUILD_PATCHES=( "$SCRIPT_DIR/src/err_ret_local_block.patch" "$SCRIPT_DIR/src/mangle_suppress_errors.patch" "$SCRIPT_DIR/src/AArch64SVEACLETypes.patch" + "$SCRIPT_DIR/src/benchmark_register.patch" ) CLANG_PREFIX="$SCRIPT_DIR/install" CLANG_INSTALLED_VERSION_FILE="$SCRIPT_DIR/installed.version" diff --git a/facebook-clang-plugins/clang/src/benchmark_register.patch b/facebook-clang-plugins/clang/src/benchmark_register.patch new file mode 100644 index 000000000..5dfa813ec --- /dev/null +++ b/facebook-clang-plugins/clang/src/benchmark_register.patch @@ -0,0 +1,10 @@ +--- a/llvm-project/llvm/utils/benchmark/src/benchmark_register.h ++++ b/llvm-project/llvm/utils/benchmark/src/benchmark_register.h +@@ -1,6 +1,7 @@ + #ifndef BENCHMARK_REGISTER_H + #define BENCHMARK_REGISTER_H + ++#include + #include + + #include "check.h"