Fix clangd
This commit is contained in:
@@ -5,6 +5,10 @@ bin/*
|
|||||||
|
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
|
||||||
|
.clangd
|
||||||
|
|
||||||
include/bindings/ruby_compiled.h
|
include/bindings/ruby_compiled.h
|
||||||
|
|
||||||
p.vim
|
p.vim
|
||||||
|
|
||||||
|
.cache/
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ PCH_DEBUG := $(OBJ_DIR)/debug/pch.h.gch
|
|||||||
PCH_RELEASE := $(OBJ_DIR)/release/pch.h.gch
|
PCH_RELEASE := $(OBJ_DIR)/release/pch.h.gch
|
||||||
|
|
||||||
CCACHE := ccache
|
CCACHE := ccache
|
||||||
CXX := $(CCACHE) clang++
|
CXX := $(CCACHE) $(shell which clang++)
|
||||||
CC := $(CCACHE) clang
|
CC := $(CCACHE) $(shell which clang)
|
||||||
|
|
||||||
# ---------------- SDL3 ----------------
|
# ---------------- SDL3 ----------------
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
devShells = forAllSystems (pkgs: {
|
devShells = forAllSystems (pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
clang-tools
|
||||||
clang
|
clang
|
||||||
ccache
|
ccache
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|||||||
+1
-2
@@ -58,7 +58,6 @@
|
|||||||
#include <shared_mutex>
|
#include <shared_mutex>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
@@ -72,4 +71,4 @@
|
|||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+1
-1
@@ -38,4 +38,4 @@ int main(int argc, char *argv[]) {
|
|||||||
mrb_close(Ruby::mrb);
|
mrb_close(Ruby::mrb);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user