<commit_before>add_granite_library(compiler compiler.cpp compiler.hpp)
target_link_libraries(compiler shaderc util filesystem)
target_include_directories(compiler PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

option(GRANITE_SHADER_COMPILER_DEBUG "Always build debug SPIR-V files." ON)
if (GRANITE_SHADER_COMPILER_DEBUG)
    target_compile_definitions(compiler PRIVATE GRANITE_COMPILER_OPTIMIZE=0)
    target_link_libraries(compiler SPIRV-Tools)
else()
    target_compile_definitions(compiler PRIVATE GRANITE_COMPILER_OPTIMIZE=1)
    target_link_libraries(compiler SPIRV-Tools SPIRV-Tools-opt)
endif()
<commit_msg>Rename the SPIR-V optimize option.<commit_after>add_granite_library(compiler compiler.cpp compiler.hpp)
target_link_libraries(compiler shaderc util filesystem)
target_include_directories(compiler PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

option(GRANITE_SHADER_COMPILER_OPTIMIZE "Optimize SPIR-V." OFF)
if (GRANITE_SHADER_COMPILER_OPTIMIZE)
    target_compile_definitions(compiler PRIVATE GRANITE_COMPILER_OPTIMIZE=1)
    target_link_libraries(compiler SPIRV-Tools SPIRV-Tools-opt)
else()
    target_compile_definitions(compiler PRIVATE GRANITE_COMPILER_OPTIMIZE=0)
    target_link_libraries(compiler SPIRV-Tools)
endif()

{'fraction_non_alphanumeric': 0.06721311475409836, 'fraction_numerical': 0.003278688524590164, 'mean_word_length': 9.347457627118644, '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': '4084512', 'n_tokens_mistral': 428, 'n_tokens_neox': 414, 'n_words': 65}