diff --git a/.gitignore b/.gitignore index d221221..c082246 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,10 @@ bin/* compile_commands.json +.clangd + include/bindings/ruby_compiled.h p.vim + +.cache/ diff --git a/Makefile b/Makefile index 6a2bd8b..3cba897 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ PCH_DEBUG := $(OBJ_DIR)/debug/pch.h.gch PCH_RELEASE := $(OBJ_DIR)/release/pch.h.gch CCACHE := ccache -CXX := $(CCACHE) clang++ -CC := $(CCACHE) clang +CXX := $(CCACHE) $(shell which clang++) +CC := $(CCACHE) $(shell which clang) # ---------------- SDL3 ---------------- diff --git a/flake.nix b/flake.nix index 404f7d1..630d761 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,7 @@ devShells = forAllSystems (pkgs: { default = pkgs.mkShell { packages = with pkgs; [ + clang-tools clang ccache pkg-config diff --git a/include/pch.h b/include/pch.h index c780a6b..f8055ce 100644 --- a/include/pch.h +++ b/include/pch.h @@ -58,7 +58,6 @@ #include #include #include -#include #include #include #include @@ -72,4 +71,4 @@ #include #include -#endif \ No newline at end of file +#endif diff --git a/src/main.cc b/src/main.cc index 66d569e..62b7b2b 100644 --- a/src/main.cc +++ b/src/main.cc @@ -38,4 +38,4 @@ int main(int argc, char *argv[]) { mrb_close(Ruby::mrb); return 0; -} \ No newline at end of file +}