<commit_before>#
# Generic Tool chain support.
#

MESSAGE ("Loaded: Generic-chc12.cmake")

GET_FILENAME_COMPONENT(CHC12_PATH ${CMAKE_C_COMPILER} PATH)

IF(NOT DEFINED CHC12_PIPER)
    SET(CHC12_PIPER ${CHC12_PATH}/piper)
ENDIF()

IF(NOT DEFINED CHC12_BURNER)
    SET(CHC12_BURNER ${CHC12_PATH}/burner.exe)
ENDIF()

SET(CMAKE_OBJCOPY      FALSE)
SET(CMAKE_OBJDUMP      FALSE)

#
# We have to setup the object type very early, as this can't be overridden later on.
#
SET (CMAKE_C_OUTPUT_EXTENSION     ".o"         CACHE STRING "C compiler object extension.")
SET (CMAKE_CXX_OUTPUT_EXTENSION   ".o"         CACHE STRING "C++ compiler object extension.")

#
# Convince CMake we know our compiler works OK.
# If we don't do this it will do a TRY-COMPILE which will fail to link.
#
SET (CMAKE_C_COMPILER_ID_RUN    TRUE)
SET (CMAKE_C_COMPILER_WORKS     TRUE)
SET (CMAKE_CXX_COMPILER_ID_RUN  TRUE)
SET (CMAKE_CXX_COMPILER_WORKS   TRUE)

SET (CMAKE_C_COMPILER_ID        chc12)
SET (CMAKE_CXX_COMPILER_ID      chc12)

#
# Don't generate preprocessed or assembler makefile rules for C/C++ source files.
#
SET (CMAKE_SKIP_PREPROCESSED_SOURCE_RULES    TRUE)
SET (CMAKE_SKIP_ASSEMBLY_SOURCE_RULES        TRUE)

#
# Workaround to inhibit CMake from performing a TRY-COMPILE to determine the size of "void *",
# this size isn't ever used so its actual value doesn't matter.
#
SET (CMAKE_SIZEOF_VOID_P 2)

#
# Library and linker extensions. (Object extensions have to be specified earlier in Toolchain-Freescale-HC12.cmake)
#
SET (CMAKE_FIND_LIBRARY_PREFIXES                     "")
SET (CMAKE_FIND_LIBRARY_SUFFIXES                     ".lib")
SET (CMAKE_STATIC_LIBRARY_PREFIX                     "")
SET (CMAKE_STATIC_LIBRARY_SUFFIX                     ".lib")
SET (CMAKE_LINK_LIBRARY_SUFFIX                        ".lib")
SET (CMAKE_EXECUTABLE_SUFFIX                         ".elf")

#
# Default options applied to all tool invocations
#
SET (CHC12_STANDARD_FLAGS "-ViewHidden -NoEnv -NoBeep -WStdoutOn -WmsgNu=abcde")

#
# C compiler.
#
SET (CMAKE_C_FLAGS_INIT                             "${CMAKE_C_FLAGS_INIT} -Cc")
SET (CMAKE_C_FLAGS_DEBUG_INIT                       "${CMAKE_C_FLAGS_DEBUG_INIT}")
SET (CMAKE_C_FLAGS_MINSIZEREL_INIT                  "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -Os")
SET (CMAKE_C_FLAGS_RELEASE_INIT                     "${CMAKE_C_FLAGS_RELEASE_INIT} -Ot")
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT              "${CMAKE_C_FLAGS_RELWITHDEBINFO_INIT}")
SET (CMAKE_C_STANDARD_LIBRARIES_INIT                "${CMAKE_C_STANDARD_LIBRARIES_INIT}")

#
# C++ compiler
#
SET (CMAKE_CXX_FLAGS_INIT                           "${CMAKE_CXX_FLAGS_INIT} -Cc")
SET (CMAKE_CXX_FLAGS_DEBUG_INIT                     "${CMAKE_CXX_FLAGS_DEBUG_INIT}")
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT                "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT} -Os")
SET (CMAKE_CXX_FLAGS_RELEASE_INIT                   "${CMAKE_CXX_FLAGS_RELEASE_INIT} -Ot")
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT            "${CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT}")
SET (CMAKE_CXX_STANDARD_LIBRARIES_INIT              "${CMAKE_CXX_STANDARD_LIBRARIES_INIT}")
<commit_msg>Switch to abs suffix to match codewarrior<commit_after>#
# Generic Tool chain support.
#

MESSAGE ("Loaded: Generic-chc12.cmake")

GET_FILENAME_COMPONENT(CHC12_PATH ${CMAKE_C_COMPILER} PATH)

IF(NOT DEFINED CHC12_PIPER)
    SET(CHC12_PIPER ${CHC12_PATH}/piper)
ENDIF()

IF(NOT DEFINED CHC12_BURNER)
    SET(CHC12_BURNER ${CHC12_PATH}/burner.exe)
ENDIF()

SET(CMAKE_OBJCOPY      FALSE)
SET(CMAKE_OBJDUMP      FALSE)

#
# We have to setup the object type very early, as this can't be overridden later on.
#
SET (CMAKE_C_OUTPUT_EXTENSION     ".o"         CACHE STRING "C compiler object extension.")
SET (CMAKE_CXX_OUTPUT_EXTENSION   ".o"         CACHE STRING "C++ compiler object extension.")

#
# Convince CMake we know our compiler works OK.
# If we don't do this it will do a TRY-COMPILE which will fail to link.
#
SET (CMAKE_C_COMPILER_ID_RUN    TRUE)
SET (CMAKE_C_COMPILER_WORKS     TRUE)
SET (CMAKE_CXX_COMPILER_ID_RUN  TRUE)
SET (CMAKE_CXX_COMPILER_WORKS   TRUE)

SET (CMAKE_C_COMPILER_ID        chc12)
SET (CMAKE_CXX_COMPILER_ID      chc12)

#
# Don't generate preprocessed or assembler makefile rules for C/C++ source files.
#
SET (CMAKE_SKIP_PREPROCESSED_SOURCE_RULES    TRUE)
SET (CMAKE_SKIP_ASSEMBLY_SOURCE_RULES        TRUE)

#
# Workaround to inhibit CMake from performing a TRY-COMPILE to determine the size of "void *",
# this size isn't ever used so its actual value doesn't matter.
#
SET (CMAKE_SIZEOF_VOID_P 2)

#
# Library and linker extensions. (Object extensions have to be specified earlier in Toolchain-Freescale-HC12.cmake)
#
SET (CMAKE_FIND_LIBRARY_PREFIXES                     "")
SET (CMAKE_FIND_LIBRARY_SUFFIXES                     ".lib")
SET (CMAKE_STATIC_LIBRARY_PREFIX                     "")
SET (CMAKE_STATIC_LIBRARY_SUFFIX                     ".lib")
SET (CMAKE_LINK_LIBRARY_SUFFIX                        ".lib")
SET (CMAKE_EXECUTABLE_SUFFIX                         ".abs")

#
# Default options applied to all tool invocations
#
SET (CHC12_STANDARD_FLAGS "-ViewHidden -NoEnv -NoBeep -WStdoutOn -WmsgNu=abcde")

#
# C compiler.
#
SET (CMAKE_C_FLAGS_INIT                             "${CMAKE_C_FLAGS_INIT} -Cc")
SET (CMAKE_C_FLAGS_DEBUG_INIT                       "${CMAKE_C_FLAGS_DEBUG_INIT}")
SET (CMAKE_C_FLAGS_MINSIZEREL_INIT                  "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -Os")
SET (CMAKE_C_FLAGS_RELEASE_INIT                     "${CMAKE_C_FLAGS_RELEASE_INIT} -Ot")
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT              "${CMAKE_C_FLAGS_RELWITHDEBINFO_INIT}")
SET (CMAKE_C_STANDARD_LIBRARIES_INIT                "${CMAKE_C_STANDARD_LIBRARIES_INIT}")

#
# C++ compiler
#
SET (CMAKE_CXX_FLAGS_INIT                           "${CMAKE_CXX_FLAGS_INIT} -Cc")
SET (CMAKE_CXX_FLAGS_DEBUG_INIT                     "${CMAKE_CXX_FLAGS_DEBUG_INIT}")
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT                "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT} -Os")
SET (CMAKE_CXX_FLAGS_RELEASE_INIT                   "${CMAKE_CXX_FLAGS_RELEASE_INIT} -Ot")
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT            "${CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT}")
SET (CMAKE_CXX_STANDARD_LIBRARIES_INIT              "${CMAKE_CXX_STANDARD_LIBRARIES_INIT}")

{'fraction_non_alphanumeric': 0.08389154704944178, 'fraction_numerical': 0.007974481658692184, 'mean_word_length': 3.240027045300879, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2542638', 'n_tokens_mistral': 2487, 'n_tokens_neox': 2260, 'n_words': 478}