diff --git a/worksheet_two/.vscode/tasks.json b/worksheet_two/.vscode/tasks.json new file mode 100644 index 0000000000000000000000000000000000000000..a79fe08d3bdef361172a64caec0841aa6c0ae81f --- /dev/null +++ b/worksheet_two/.vscode/tasks.json @@ -0,0 +1,48 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "Build benchmark test", + "command": "g++", + "args": [ + "-std=c++20", // Use C++20 + "-g", // Debugging information + "task 3/benchmark.cpp", // Path to benchmark source file + "task 3/bump_up_allocator.cpp", // Path to bump_up_allocator source + "task 3/bump_down_allocator.cpp", // Path to bump_down_allocator source + "-I\"C:/Users/vanco/Desktop/CS Year 3/1st Semester/Advanced systems programming/worksheet_two/task 3\"", // Include path for header files + "-o", // Output file + "benchmark" // Output executable name + ], + "options": { + "cwd": "${workspaceFolder}/task 3", + "shell": { + "executable": "powershell.exe", + "args": ["-Command"] + } + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "type": "shell", + "label": "Run benchmark test", + "command": "./benchmark", // Run the generated executable + "options": { + "cwd": "${workspaceFolder}/task 3", + "shell": { + "executable": "powershell.exe", + "args": ["-Command"] + } + }, + "group": "test", + "dependsOn": "Build benchmark test" + } + ] +}