mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: LLVM: Add missing include statement for compatibility with GCC 11.
* gnu/packages/patches/llvm-8-missing-include.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/llvm.scm (llvm-11, llvm-10, llvm-9, llvm-8)[source](patches): Add it.
This commit is contained in:
parent
c9085d3bf6
commit
e9afd8a005
3 changed files with 23 additions and 1 deletions
17
gnu/packages/patches/llvm-8-missing-include.patch
Normal file
17
gnu/packages/patches/llvm-8-missing-include.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
Add missing include statement for compatibility with libstdc++ 11.
|
||||
|
||||
Taken from upstream:
|
||||
|
||||
https://github.com/llvm/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1
|
||||
|
||||
diff --git a/utils/benchmark/src/benchmark_register.h b/utils/benchmark/src/benchmark_register.h
|
||||
--- a/utils/benchmark/src/benchmark_register.h
|
||||
+++ b/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"
|
Loading…
Add table
Add a link
Reference in a new issue