SDCC-C-DetermineCompiler.cmake 368 B

12345678910
  1. # sdcc, the small devices C compiler for embedded systems,
  2. # http://sdcc.sourceforge.net */
  3. set(_compiler_id_pp_test "defined(SDCC)")
  4. set(_compiler_id_version_compute "
  5. /* SDCC = VRP */
  6. # define COMPILER_VERSION_MAJOR @MACRO_DEC@(SDCC/100)
  7. # define COMPILER_VERSION_MINOR @MACRO_DEC@(SDCC/10 % 10)
  8. # define COMPILER_VERSION_PATCH @MACRO_DEC@(SDCC % 10)")