cquery package: patch for gcc@10: (#23679)
This commit is contained in:
parent
f3c3fc7493
commit
e7b11c3098
10
var/spack/repos/builtin/packages/cquery/fix-gcc10.patch
Normal file
10
var/spack/repos/builtin/packages/cquery/fix-gcc10.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -purw src/options.h src/options.h
|
||||
--- src/options.h 2020-05-13 13:26:39.743491698 +0200
|
||||
+++ src/options.h 2020-05-13 13:28:47.277181534 +0200
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
+#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
std::unordered_map<std::string, std::string> ParseOptions(int argc,
|
@ -18,6 +18,9 @@ class Cquery(CMakePackage):
|
||||
|
||||
depends_on('llvm')
|
||||
|
||||
# trivial patch (missing header) by mueller@kip.uni-heidelberg.de
|
||||
patch('fix-gcc10.patch', level=0, when='%gcc@10.0:')
|
||||
|
||||
def cmake_args(self):
|
||||
args = ['-DCMAKE_EXPORT_COMPILE_COMMANDS=YES',
|
||||
'-DSYSTEM_CLANG=ON']
|
||||
|
Loading…
Reference in New Issue
Block a user