How to detect LLVM and its version through #define directives?

后端 未结 8 1318
广开言路
广开言路 2020-12-24 04:33

The question is quite clear I think. I\'m trying to write a compiler detection header to be able to include in the application information on which compiler was used and whi

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 05:13

    For clang, you shouldn't test its version number, you should check for features you want with feature checking macros.

提交回复
热议问题