From 465619812740617fcc3b2180a4d7e246adea1c51 Mon Sep 17 00:00:00 2001 From: MacDue Date: Tue, 24 May 2022 17:31:57 +0100 Subject: [PATCH] Meta: Add -S to Jakt compiler invocation in compile_jakt This prevents the Jakt compiler from attempting to compile the generated C++ source itself. --- Meta/CMake/code_generators.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/CMake/code_generators.cmake b/Meta/CMake/code_generators.cmake index 90340fdbae9..4df32d316a6 100644 --- a/Meta/CMake/code_generators.cmake +++ b/Meta/CMake/code_generators.cmake @@ -69,7 +69,7 @@ function(compile_jakt source) set(output "${source_base}.cpp") add_custom_command( OUTPUT ${output} - COMMAND $ -o "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp" ${source} + COMMAND $ -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 remove "${CMAKE_CURRENT_BINARY_DIR}/jakt_tmp/${output}" VERBATIM