[Vm-dev] __VERSION__ in squeakvm classic
stes
stes at telenet.be
Sun Mar 29 17:50:52 UTC 2020
There is a
IF (CMAKE_COMPILER_IS_GNUCC)
so I could use that
but the IF (__SUNPRO_C) doesn't seem to work
in C source files I use __SUNPRO_C like in
platforms/unix/vm/include_ucontext.h:#elif __SUNPRO_C && __i386__
but I don't think that the config.cmake is "preprocessed" by cc -E.
The nicest solution seems CMAKE_<LANG>_COMPILER_VERSION
or possibly IF (CMAKE_COMPILER_IS_GNUCC)
--
Sent from: http://forum.world.st/Squeak-VM-f104410.html
More information about the Vm-dev
mailing list