Skip to content

Instantly share code, notes, and snippets.

@AndiH
Created November 7, 2012 16:04
Show Gist options
  • Save AndiH/4032465 to your computer and use it in GitHub Desktop.
Save AndiH/4032465 to your computer and use it in GitHub Desktop.
C++/ROOT: Build System (runs »root -l« for current file)
{
"path": "/Applications/Panda/extpkg/bin", // point this to the directory of your root / root.exe
"selector": "source.cpp, source.c, source.c++",
"working_dir": "${file_path}",
"cmd": ["root", "-l", "$file"],
"variants": [
{
"cmd": ["root", "-l", "$file+"], // delivers a command palette only option to run root with compiling the macro before executing it (the + option) - but doesn't run, since clang++ can't be found. If you want to fix it: fix it.
"name": "ROOT: Compile (+)"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment