simulator usability (#2794)

* simulator

* simulator is debuggable

* s

* format
This commit is contained in:
Matthew Kennedy 2021-06-03 22:34:49 -07:00 committed by GitHub
parent 7cef936a6d
commit f3ff40724a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 173 additions and 139 deletions

18
.vscode/launch.json vendored
View File

@ -24,6 +24,24 @@
}
]
},
{
"name": "Debug simulator (gdb)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/simulator/build/rusefi_simulator",
"stopAtEntry": false,
"cwd": "${workspaceFolder}/simulator/",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "Debug Unit Tests (lldb)",
"type": "lldb",

16
.vscode/tasks.json vendored
View File

@ -130,6 +130,22 @@
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Simulator",
"type": "shell",
"command": "make -j12",
"windows": {
"command": "wsl make -j12"
},
"options": {
"cwd": "${workspaceRoot}/simulator"
},
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@ -34,7 +34,7 @@ ifeq ($(USE_OPT),)
# this config producec a smaller binary file
# 7.3 compiler would want -Wno-error=implicit-fallthrough while 6.4 does not know about it
# see https://github.com/rusefi/rusefi/issues/517
USE_OPT = -Wall -O2 -Wno-error=implicit-fallthrough -Wno-error=write-strings -Wno-error=strict-aliasing
USE_OPT = -Wall -Og -g -Wno-error=implicit-fallthrough -Wno-error=write-strings -Wno-error=strict-aliasing
ifeq ($(OS),Windows_NT)
else