I recently found that clang is better than gcc in many ways( according to some blogs ). I tried a lot but couldn't find a build system for compiling c++ code using clang in sublime text. Can anyone please share it here. It can help many other people.
Thanks in advance.
I definitely disagree with you. At least for competitive programming, GCC is better than CLANG.
Some reasons:
Most official contests (as IOI/ICPC) use GCC as compiler in their judging system.
In GCC you have access to some libraries not from the standard C++, like the ones for using policy-based data structures.