Meta: Add -S to Jakt compiler invocation in compile_jakt

This prevents the Jakt compiler from attempting to compile the
generated C++ source itself.
This commit is contained in:
MacDue 2022-05-24 17:31:57 +01:00 committed by Andreas Kling
parent 9400b76d79
commit 4656198127

View file

@ -69,7 +69,7 @@ function(compile_jakt source)
set(output "${source_base}.cpp") set(output "${source_base}.cpp")
add_custom_command( add_custom_command(
OUTPUT ${output} OUTPUT ${output}
COMMAND $<TARGET_FILE:Lagom::jakt> -o "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp" ${source} COMMAND $<TARGET_FILE:Lagom::jakt> -S -o "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp" ${source}
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp/${output}" ${output} COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp/${output}" ${output}
COMMAND "${CMAKE_COMMAND}" -E remove "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp/${output}" COMMAND "${CMAKE_COMMAND}" -E remove "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp/${output}"
VERBATIM VERBATIM