summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/SDCC-C-DetermineCompiler.cmake
blob: 1d7dd78d8809f50d0100ea4da3b8654c48d9e421 (plain)
1
2
3
4
5
6
7
8
9
10

# sdcc, the small devices C compiler for embedded systems,
#   http://sdcc.sourceforge.net  */
set(_compiler_id_pp_test "defined(SDCC)")

set(_compiler_id_version_compute "
  /* SDCC = VRP */
#  define COMPILER_VERSION_MAJOR @MACRO_DEC@(SDCC/100)
#  define COMPILER_VERSION_MINOR @MACRO_DEC@(SDCC/10 % 10)
#  define COMPILER_VERSION_PATCH @MACRO_DEC@(SDCC    % 10)")