Skip to content

Instantly share code, notes, and snippets.

@sl
Last active April 28, 2019 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sl/487c08d95b5839f264cf17301a1bceda to your computer and use it in GitHub Desktop.
Save sl/487c08d95b5839f264cf17301a1bceda to your computer and use it in GitHub Desktop.
[Swift Compiler Environment Configuration] Full Tasks.json Configuration
{
"version": "2.0.0",
"tasks": [
{
"label": "Ninja Build (Swift)",
"type": "shell",
"command": "ninja",
"args": [
"swift"
],
"options": {
"cwd": "${env:SWIFT_BUILD_DIR}"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Ninja Build (Swift IDE Test)",
"type": "shell",
"command": "ninja",
"args": [
"swift-ide-test"
],
"options": {
"cwd": "${env:SWIFT_BUILD_DIR}"
},
"group": "build"
},
{
"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}"
],
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Run All Tests",
"type": "shell",
"command": "${LLVM_LIT_DIR}/lit.py",
"args": [
"-sv",
"--param",
"swift_site_config=${SWIFT_BUILD_DIR}/test-macosx-x86_64/lit.site.cfg",
"${SWIFT_SOURCE_DIR}/test",
],
"group": "test"
},
{
"label": "Run Specific Test(s)",
"type": "shell",
"command": "${LLVM_LIT_DIR}/lit.py",
"args": [
"-sv",
"--param",
"swift_site_config=${SWIFT_BUILD_DIR}/test-macosx-x86_64/lit.site.cfg",
"${SWIFT_SOURCE_DIR}/test",
"--filter=${input:testFilter}"
],
"group": "test"
},
{
"label": "Format changes",
"type": "shell",
"command": "git",
"args": [
"clang-format",
"master"
]
}
],
"inputs": [
{
"id": "testFilter",
"type": "promptString",
"description": "Runs the specified lit tests."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment