Last active
August 12, 2022 09:36
-
-
Save mitchell-merry/2d628efa4c406e1748f663b322e53c94 to your computer and use it in GitHub Desktop.
VSCode build tasks for .pml (PROMELA)
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": [ | |
{ | |
"label": "Compile C file with cc.", | |
"type": "shell", | |
"command": "cc ${relativeFile}", | |
"windows": { | |
"command": "gcc ${relativeFile}" | |
}, | |
"group": { | |
"kind": "build", | |
"isDefault": false | |
}, | |
"presentation": { | |
"reveal": "silent", | |
"panel": "shared" | |
}, | |
}, | |
{ | |
"label": "Run most recent compiled C file.", | |
"type": "shell", | |
"command": "./a.out", | |
"group": { | |
"kind": "test", | |
"isDefault": false | |
}, | |
"presentation": { | |
"reveal": "always", | |
"panel": "shared" | |
}, | |
}, | |
{ | |
"label": "Compile and run current C file.", | |
"dependsOn": ["Compile C file with cc.", "Run most recent compiled C file."], | |
"group": { | |
"kind": "test", | |
"isDefault": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment