From a60810b5a31f7c3a9d1b1f5152c889e45d9ee2f7 Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Sat, 3 Aug 2024 11:28:09 -0400 Subject: [PATCH] cmake: add ZIG_EXTRA_BUILD_ARGS option --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f99e59e41f..6bd5f24a97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -945,6 +945,11 @@ set(ZIG_BUILD_ARGS -Dno-langref ) +option(ZIG_EXTRA_BUILD_ARGS "Extra zig build args") +if(ZIG_EXTRA_BUILD_ARGS) + list(APPEND ZIG_BUILD_ARGS ${ZIG_EXTRA_BUILD_ARGS}) +endif() + if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") list(APPEND ZIG_BUILD_ARGS -Doptimize=Debug) elseif("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")