Trick-17 / clang-build

Clang-based cross platform build system written in Python
https://clang-build.readthedocs.io
MIT License
8 stars 3 forks source link

Detect llvm/clang version or supported flags somehow? #71

Open GPMueller opened 6 years ago

GPMueller commented 6 years ago

I did not pay attention to the version of clang I was using on OSX and removed the -Og flag. The -Og flag is actually supported since version 4.0: http://releases.llvm.org/4.0.0/tools/clang/docs/ReleaseNotes.html#id5 The next important feature, which should be enabled if available is modules (see also #70). An outdated clang might also be the reason for some of the issues I had with sanitization flags (e.g. #39).

Therefore, it would be great to know if certain flags are supported by the available version of clang.

GPMueller commented 4 years ago

With PR #118 we can reliably and quickly detect the C++ language versions. Regarding the LLVM/Clang versions, maybe for now we should just always assume that it is always reasonably new?