also the following C program:
bash-4.4$ cat x.c
#include <stdio.h>
int main(int argc,char *argv[]) { printf("%x\n",__SUNPRO_C); }
produces
bash-4.4$ ./a.out 5150
This matches the description at http://beefchunk.com/documentation/lang/c/pre-defined-c/precomp.html
__SUNPRO_C = 0xVRP V = Version R = Revision P = Patch
so basically the "cmake" variable CMAKE_C_COMPILER_VERSION in +SET (VM_BUILD_STRING ""Unix built on "__DATE__ " "__TIME__" Compiler: ${CMAKE_C_COMPILER_VERSION}"")
correctly identifies the version as
(cd build64; ../../platforms/unix/cmake/configure --prefix=/u/src/squeak --src=../../src --image64 --vm-only "--CFLAGS='-m64 -O2 -D_FILE_OFFSET_BITS=64'") -- Configuring squeak 4.16.7-3775 for i386-pc-solaris2.11 -- Using source directory /u/src/squeakvm/src -- The C compiler identification is SunPro 5.15.0
and it sets CMAKE_C_COMPILER_VERSION to 5.15.0 (correct).
-- Sent from: http://forum.world.st/Squeak-VM-f104410.html