xiaoxiang781216 edited a comment on pull request #1344: URL: https://github.com/apache/incubator-nuttx/pull/1344#issuecomment-652375887
> @xiaoxiang781216 that seems limited to gnu and would not be in alignment with not using compiler specific macros in code other than compiler.h. All compilers define the similar macros: https://developer.arm.com/documentation/dui0472/k/Compiler-specific-Features/Predefined-macros https://sourceforge.net/p/predef/wiki/Compilers/ Yes, if you want to print toolchain info, please: 1.Add a new macro(e.g. COMPILER_VERSION) in compiler.h 2.Assign it to the different predefined value according the compiler type 3.Reference the common macro in uname This approach is much better than let's the board files generate the version individually. Do you want to modify more than 200 files to support this feature? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
