Skip to content

Commit

Permalink
[llvm 9,10,11] Fix missing header (#820) (#821)
Browse files Browse the repository at this point in the history
* Upstream patch: llvm/llvm-project@b498303
  • Loading branch information
kyechou authored Sep 14, 2021
1 parent a97254f commit 28e7561
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ports/llvm-10/0026-fix-missing-header-limits.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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"
1 change: 1 addition & 0 deletions ports/llvm-10/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ vcpkg_from_github(
0023-fix-macos-libcxx-header-handling.patch
0024-vcpkg-fix-clang-sys-include-dir-path.patch
0025-remove-compiler-rt-tests.patch
0026-fix-missing-header-limits.patch
)

include("${CURRENT_INSTALLED_DIR}/share/llvm-vcpkg-common/llvm-common-build.cmake")
12 changes: 12 additions & 0 deletions ports/llvm-11/0025-fix-missing-header-limits.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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"
1 change: 1 addition & 0 deletions ports/llvm-11/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ vcpkg_from_github(
0022-llvm-config-bin-path.patch
0023-fix-macos-libcxx-header-handling.patch
0024-vcpkg-fix-clang-sys-include-dir-path.patch
0025-fix-missing-header-limits.patch
)

include("${CURRENT_INSTALLED_DIR}/share/llvm-vcpkg-common/llvm-common-build.cmake")
12 changes: 12 additions & 0 deletions ports/llvm-9/0029-fix-missing-header-limits.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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"
1 change: 1 addition & 0 deletions ports/llvm-9/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ vcpkg_from_github(
0026-fix-macos-libcxx-header-handling.patch
0027-vcpkg-fix-clang-sys-include-dir-path.patch
0028-remove-compiler-rt-tests.patch
0029-fix-missing-header-limits.patch
)

include("${CURRENT_INSTALLED_DIR}/share/llvm-vcpkg-common/llvm-common-build.cmake")

0 comments on commit 28e7561

Please sign in to comment.