Skip to content

Instantly share code, notes, and snippets.

@vmrob
Created January 28, 2014 05:57
Show Gist options
  • Save vmrob/8662894 to your computer and use it in GitHub Desktop.
Save vmrob/8662894 to your computer and use it in GitHub Desktop.
c++1y.sublime-build
{
"cmd": ["clang++-3.5", "--std=c++1y", "--stdlib=libc++", "-nostdinc++", "-I/usr/local/lib/llvm-3.5/include/c++/v1", "${file}", "-L/usr/local/lib/llvm-3.5/usr/lib", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"path": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin",
"variants":
[
{
"name": "Run",
"cmd":["bash", "-c", "clang++-3.5 -O3 --stdlib=libc++ --std=c++1y -nostdinc++ -I/usr/local/lib/llvm-3.5/include/c++/v1 '${file}' -L/usr/local/lib/llvm-3.5/usr/lib -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment