Created
May 31, 2019 13:32
-
-
Save lsem/855b4b0e4c5565a46f14bbc557f13c41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "shell", | |
"label": "== Compile Current File ==", | |
"command": "echo 'Compiling: ${file} ...' && TIME=\"Took: %es\" time `grep -m 1 -B3 -A0 '\"file\": \"${file}\"' compile_commands.json | cat - <(echo }) | jq -r '.command'` && echo -e \\\\e[32mCompiled successfully\\\\e[0m \\\\U0001F525", | |
"args": [], | |
"options": { | |
"cwd": "${workspaceFolder}/sources/build" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"presentation": { | |
"echo": false, | |
"reveal": "always", | |
"focus": false, | |
"panel": "shared", | |
"showReuseMessage": false, | |
"clear": true | |
}, | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment