cquery package: patch for gcc@10: (#23679)

This commit is contained in:
Andreas Baumbach 2021-05-19 21:15:02 +02:00 committed by GitHub
parent f3c3fc7493
commit e7b11c3098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View 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,

View File

@ -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']