Sublime Text build systems have selectors in them to determine the type of file to be built. For example, in the Python.sublime-build
file is the line
"selector": "source.python"
so that only files with the Python syntax set are built when Tools -> Build Systems
is set to Automatic
. However, if you specifically select a certain build system, it will be used to build all files, regardless of any selector statements.
Probably what happened in your case was that your Build System was set to C/C++, which invoked clang
on your LaTeX files. Set the build system back to Automatic, or specifically select the LaTeX build system, and you should be all set.