This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Preprocessor define for finding out if clang compiler is TI ARM Clang



Hello,
I am currently working on a few features (details are irrelevant for this question) to make our code platform independant.
For that I need to differentiate between different compilers in C preprocessor defines.

I know that the Clang compiler defines __clang__,
but I would also like to further differentiate by version.

Now here it says regarding __clang_major__, __clang_minor__ and __clang_patchlevel__ that those should not be used as they are vendor-dependant,
but instead use the alternative macros to test for features directly.
My problem is that those feature tests are compiler-dependant, and I already have a script that does the tests in a compiler-independant way.

So I would rather really like to test for major, minor and patch version.

But as it seems those are vendor-dependant, is there any way to test through some preprocessor macro, if the clang compiler I am using is indeed TI ARM Clang or at least that the vendor is TI?
Thank you for your time and trouble.


Best regards

Philip.