From d8065f6266d2647b90e8b92f991ef1d889dddb18 Mon Sep 17 00:00:00 2001 From: Jaby Date: Tue, 12 Aug 2025 21:50:46 +0200 Subject: [PATCH] Add clangd support --- .clangd | 2 ++ .gitignore | 2 ++ src/Library/Library.code-workspace | 28 ++-------------------------- 3 files changed, 6 insertions(+), 26 deletions(-) create mode 100644 .clangd diff --git a/.clangd b/.clangd new file mode 100644 index 00000000..a7dd94fe --- /dev/null +++ b/.clangd @@ -0,0 +1,2 @@ +CompileFlags: + Remove: [-fmodules-ts, -mno-shared, -mno-llsc, -march=r2000, -mtune=r2000] \ No newline at end of file diff --git a/.gitignore b/.gitignore index f20b5381..5079cadc 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ **/config .lfsconfig +.cache +compile_commands.json *.d *.a diff --git a/src/Library/Library.code-workspace b/src/Library/Library.code-workspace index 5cbd4dda..769a87b4 100644 --- a/src/Library/Library.code-workspace +++ b/src/Library/Library.code-workspace @@ -19,13 +19,13 @@ { "label": "make", "type": "shell", - "command": "../../scripts/podman_jaby_engine.sh ../../:src/Library make ${input:target} BUILD_PROFILE=${input:build cfg} PSX_TV_FORMAT=${input:tv format} CUSTOM_CONFIG=${input:config options}", + "command": "../../scripts/podman_jaby_engine.sh ../../:src/Library bear --output ${workspaceFolder}/../../compile_commands.json -- make ${input:target} BUILD_PROFILE=${input:build cfg} PSX_TV_FORMAT=${input:tv format} CUSTOM_CONFIG=${input:config options}", "group": "build" }, { "label": "make_all", "type": "shell", - "command": "../../scripts/podman_jaby_engine.sh ../../:src/Library make -f MakeAll.mk ${input:target prefix}_${input:target} BUILD_PROFILE=${input:build cfg} CUSTOM_CONFIG=${input:config options}", + "command": "../../scripts/podman_jaby_engine.sh ../../:src/Library bear --output ${workspaceFolder}/../../compile_commands.json -- make -f MakeAll.mk ${input:target prefix}_${input:target} BUILD_PROFILE=${input:build cfg} CUSTOM_CONFIG=${input:config options}", "group": "build" } ], @@ -75,29 +75,5 @@ }, "settings": { "cmake.configureOnOpen": false, - "C_Cpp.default.includePath": [ - "include", - "../../include" - ], - "C_Cpp.default.compilerPath": "", - "C_Cpp.default.cStandard": "c17", - "C_Cpp.default.cppStandard": "c++20", - "C_Cpp.default.intelliSenseMode": "linux-gcc-x86", - "C_Cpp.default.compilerArgs": [ - ], - "C_Cpp.default.defines": [ - "JABYENGINE_PAL", - "__DEBUG_SPU_MMU__", - "__friends=public" - ], - "files.exclude": { - "**/*.o": true, - "**/*.dep": true - }, - "files.associations": { - "stdio.h": "c", - "TUTO0.C": "cpp", - "MAIN.C": "cpp" - } } } \ No newline at end of file