gnu: ccls: Configure using -isystem for header files.
* gnu/packages/cpp.scm (ccls): Configure using -isystem for header files. [arguments]: Use GCC as a build input for preprocessing and searching GCC subdirectories, this provides better support for header file completion on runtime. [inputs]: Add ncurses for command-line support. Remove LLVM, it is not needed. [native-inputs]: Move rapidjson from inputs to native-inputs, add GCC.master
parent
90ee17cdac
commit
2c82d4ad10
|
@ -6,6 +6,7 @@
|
||||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
|
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
|
||||||
;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
|
;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
|
||||||
|
;;; Copyright © 2019 Brett Gilio <brettg@posteo.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -35,7 +36,9 @@
|
||||||
#:use-module (gnu packages check)
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages code)
|
#:use-module (gnu packages code)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
#:use-module (gnu packages llvm)
|
#:use-module (gnu packages llvm)
|
||||||
|
#:use-module (gnu packages ncurses)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages tls)
|
#:use-module (gnu packages tls)
|
||||||
|
@ -305,12 +308,17 @@ tools (containers, algorithms) used by other QuantStack packages.")
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f)) ; no check target.
|
`(#:tests? #f ; no check target.
|
||||||
(inputs
|
#:configure-flags
|
||||||
`(("rapidjson" ,rapidjson)))
|
(list (string-append "-DCMAKE_CXX_FLAGS='-isystem "
|
||||||
(native-inputs
|
(assoc-ref %build-inputs "gcc")
|
||||||
|
"/include/c++'"))))
|
||||||
|
(inputs
|
||||||
`(("clang" ,clang)
|
`(("clang" ,clang)
|
||||||
("llvm" ,llvm)))
|
("ncurses" ,ncurses)))
|
||||||
|
(native-inputs
|
||||||
|
`(("rapidjson" ,rapidjson)
|
||||||
|
("gcc" ,gcc)))
|
||||||
(home-page "https://github.com/MaskRay/ccls")
|
(home-page "https://github.com/MaskRay/ccls")
|
||||||
(synopsis "C/C++/Objective-C language server")
|
(synopsis "C/C++/Objective-C language server")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue