Commit a59e9d9f authored by Johannes Kapfhammer's avatar Johannes Kapfhammer

sane soiworkspace.json default settings

parent a4b92658
Pipeline #4916 passed with stages
in 55 seconds
......@@ -54,17 +54,18 @@ export class Runner {
isDefault: true
}
};
let headerAsFlag = (path: string) => path === '' ? [] : ["-I", path];
// Todo: allow customizable flags
let execute = new vscode.ShellExecution(
compilerPath,
[
soitaskFiles.solutionWorkspacePath!,
...getCompilationFlags(this.store),
"-I",
getCppHeaderPath(this.store),
"-I",
getSoiHeaderPath(this.store),
"-o" + taskname
...headerAsFlag(getCppHeaderPath(this.store)),
...headerAsFlag(getSoiHeaderPath(this.store)),
"-o", taskname
],
{
cwd: workspace
......
......@@ -4,10 +4,10 @@ export function soiWorkspaceTemplate_0_8_0(): string {
"templateVersion":"0.8.0"
},
"settings": {
"compilerPath": "/insert/path/to/compiler",
"debuggerPath": "/insert/path/to/debugger",
"cppHeaderPath": "/insert/path/to/cppheaders",
"soiHeaderPath": "/insert/path/to/soiheaders",
"compilerPath": "/usr/bin/c++",
"debuggerPath": "/usr/bin/gdb",
"cppHeaderPath": "",
"soiHeaderPath": "",
"flags": "-Wall -Wextra -std=c++17 -g3 -ggdb3 -fsanitize=address,undefined -D_GLIBCXX_DEBUG",
"useBundledSoiHeaders": true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment