FINALLY get clangd working
This commit is contained in:
parent
98c071d7ee
commit
53b9bb2d72
|
|
@ -5,10 +5,8 @@ project(discern)
|
|||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
#string(REPLACE ":" ";" INCLUDE_LIST $ENV{CMAKE_LIBRARY_PATH})
|
||||
|
||||
#include_directories(${INCLUDE_LIST})
|
||||
|
||||
#string(REPLACE ":" ";" INCLUDE_LIST $ENV{CMAKE_STDLIB})
|
||||
#include_directories($ENV{CMAKE_STDLIB})
|
||||
|
||||
add_executable(discern)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,2 @@
|
|||
* NixOS C++ Dev Template
|
||||
Due to issues with clangd, switched to cc-ls.
|
||||
|
||||
Also now a basic CMake template.
|
||||
* Nix C++ Dev Template
|
||||
Basic C++ CMake template with Nix
|
||||
|
|
|
|||
11
default.nix
11
default.nix
|
|
@ -1,8 +1,13 @@
|
|||
with (import <nixpkgs> {});
|
||||
|
||||
pkgs.mkShell {
|
||||
name = "C++ Study Repository";
|
||||
buildInputs = with pkgs; [
|
||||
clangStdenv.mkDerivation {
|
||||
name = "discern";
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cmake
|
||||
|
||||
clang-tools
|
||||
clang
|
||||
];
|
||||
|
||||
CXXFLAGS = "-isystem${pkgs.gcc.cc}/include/c++/14.3.0 -isystem${pkgs.gcc.cc}/include/c++/14.3.0/x86_64-unknown-linux-gnu -isystem${pkgs.glibc.dev}/include";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue