0

I am peeking through the code of torsocks where as you'll notice, the .travis.yml file instructs Travis CI to test against both clang and gcc.

compiler:
  - clang
  - gcc

I'm still learning and this caught my attention. Why both? Why not just one or the other? Thanks!

Alex V
  • 111

1 Answers1

3

The two compilers have different quirks, and different levels of support for the various C and C++ standards. Code that compiles for one may trigger an error on the other. If you want folks to be able to build your software using either compiler, you have to test that you've accomodated for the differences between the compilers.