Skip to content

Commit

Permalink
Fix VSCode intellisense
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Feb 3, 2024
1 parent bacfbef commit 4df6b55
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
"name": "Docker",
"includePath": [
"${workspaceFolder}/src",
"${workspaceFolder}/res",
"${workspaceFolder}/../SGDK/inc",
"${workspaceFolder}/../SGDK/inc/ext",
"${workspaceFolder}/../SGDK/inc/ext/mw",
"${workspaceFolder}/../SGDK/res",
"${workspaceFolder}/tests/cmocka/include",
"${workspaceFolder}/tests/unit",
"${workspaceFolder}/tests/system",
"${workspaceFolder}/tests",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/",
"${workspaceFolder}/res",
"${workspaceFolder}/tests/cmocka/include"
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/"
],
"compileCommands": "${workspaceFolder}/tests/cmocka/build/compile_commands.json",
"defines": [
"DEBUG_EVENTS",
"DEBUG_TICKS",
Expand All @@ -27,8 +26,9 @@
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64",
"configurationProvider": "ms-vscode.makefile-tools"
"configurationProvider": "ms-vscode.cpptools",
"compilerPath": "${workspaceFolder}/utils/docker-gcc"
}
],
"version": 4
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"label": "Build",
"type": "shell",
"command": "./docker-make clean all",
"command": "./docker-make all",
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
Expand Down
5 changes: 5 additions & 0 deletions utils/docker-gcc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(dirname $0)"

${SCRIPT_DIR}/docker-run gcc "$@"

0 comments on commit 4df6b55

Please sign in to comment.