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"