Skip to content

Instantly share code, notes, and snippets.

View sl's full-sized avatar

Sam Lazarus sl

View GitHub Profile
@sl
sl / keybindings.json
Created April 28, 2019 02:01
[Swift Complier Environment Configuration] Add Keybinding For Task
{
"key": "<keyboard shortcut>",
"command": "workbench.action.tasks.runTask",
"args": "<task name>"
}
@sl
sl / tasks.json
Created April 28, 2019 02:06
[Swift Complier Environment Configuration] Build Tasks
{
"label": "Ninja Build (Swift)",
"type": "shell",
"command": "ninja",
"args": [
"swift"
],
"options": {
"cwd": "${env:SWIFT_BUILD_DIR}"
},
@sl
sl / tasks.json
Created April 28, 2019 02:13
[Swift Complier Environment Configuration] Run Tests Task
{
"label": "Run Test",
"type": "shell",
"command": "${LLVM_LIT_DIR}/lit.py",
"args": [
"-sv",
"--param",
"swift_site_config=${SWIFT_BUILD_DIR}/test-macosx-x86_64/lit.site.cfg",
"${fileDirname}",
"--filter=${fileBasename}"
@sl
sl / tasks.json
Created April 28, 2019 02:15
[Swift Compiler Environment Configuration] Run Tests Task Inputs
{
"id": "testFilter",
"type": "promptString",
"description": "Runs the specified lit tests."
}
@sl
sl / tasks.json
Last active April 28, 2019 02:19
[Swift Compiler Environment Configuration] Full Tasks.json Configuration
{
"version": "2.0.0",
"tasks": [
{
"label": "Ninja Build (Swift)",
"type": "shell",
"command": "ninja",
"args": [
"swift"
],