0

Are there any good reference projects that mix Clang and GCC?

My use case here is compiling OpenMP code with GCC and everything else with Clang. Added bonus if CMAKE supported this somehow.

Chad Brewbaker
  • 2,523
  • 2
  • 19
  • 26
  • This might give you some ideas, though it's not your exact use case: https://stackoverflow.com/questions/7031126/switching-between-gcc-and-clang-llvm-using-cmake – Joshua Breeden Apr 24 '18 at 16:08
  • So have a whitelist of files to use GCC on, tell cmake to only build object files; tell cmake to link those in on the clang side? – Chad Brewbaker Apr 24 '18 at 20:58

0 Answers0