Skip to content

Commit

Permalink
Noticed missing header when was building llvm with gcc-11 (#352)
Browse files Browse the repository at this point in the history
Issue fixed on LLVM12, patch needed for older versions of LLVM.
https://reviews.llvm.org/D89450
  • Loading branch information
mnaczk authored May 18, 2022
1 parent 4c04e27 commit 363a526
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions patches/llvm/0003-Add-missing-include-limit-in-benchmark.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 3b6c7f2ea3ff7509769e4567ca242d0e993d425f Mon Sep 17 00:00:00 2001
From: Marcin Naczk <marcin.naczk@intel.com>
Date: Tue, 17 May 2022 08:01:41 +0000
Subject: [PATCH] Add missing include limit in benchmark

---
llvm/utils/benchmark/src/benchmark_register.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/llvm/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h
index 0705e219f2fa..4caa5ad4da07 100644
--- a/llvm/utils/benchmark/src/benchmark_register.h
+++ b/llvm/utils/benchmark/src/benchmark_register.h
@@ -1,6 +1,7 @@
#ifndef BENCHMARK_REGISTER_H
#define BENCHMARK_REGISTER_H

+#include <limits>
#include <vector>

#include "check.h"
--
2.34.1

0 comments on commit 363a526

Please sign in to comment.