Skip to content

Instantly share code, notes, and snippets.

View sl's full-sized avatar

Sam Lazarus sl

View GitHub Profile
@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"
],
@sl
sl / c_cpp_properties.js
Last active April 28, 2019 03:07
[Swift Complier Environment Configuration] Framework inclusions
"compilerPath": "${workspaceFolder}/../build/Ninja-RelWithDebInfoAssert+swift-DebugAssert/llvm-macosx-x86_64/bin/clang",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
// if you're on a mac
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
@sl
sl / c_cpp_properties.js
Last active April 28, 2019 03:19
[Swift Complier Environment Configuration] C/C++ Configuration
"includePath": [
// the include folder under your build directory
"${workspaceFolder}/../build/Ninja-RelWithDebInfoAssert+swift-DebugAssert/swift-macosx-x86_64/include",
"${workspaceFolder}/../build/Ninja-RelWithDebInfoAssert+swift-DebugAssert/llvm-macosx-x86_64/include/**",
// the include folder for clang
"${workspaceFolder}/../clang/include",
// all the files in the project
"${workspaceFolder}/**",
// all files under the llvm include folder
"${workspaceFolder}/../llvm/include/**",