From 31725a65216635400130cc51a971c98e3f37c9b7 Mon Sep 17 00:00:00 2001 From: ffrostfall <80861876+ffrostfall@users.noreply.github.com> Date: Thu, 21 Aug 2025 09:51:52 -0400 Subject: [PATCH] Fix the fuzzer being built even if LUAU_BUILD_TESTS is off (#1830) This PR fixes the fuzzer always being built even when LUAU_BUILD_TESTS is off. This is done by moving the `include_subdirectory` for the fuzzer inside of the if block under LUAU_BUILD_TESTS. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03f235ce..12613018 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -266,6 +266,7 @@ if(LUAU_BUILD_TESTS) target_link_libraries(Luau.CLI.Test PRIVATE Luau.Compiler Luau.Config Luau.CodeGen Luau.VM Luau.Require Luau.CLI.lib isocline) target_link_libraries(Luau.CLI.Test PRIVATE osthreads) + add_subdirectory(fuzz) endif() if(LUAU_BUILD_WEB) @@ -282,8 +283,6 @@ if(LUAU_BUILD_WEB) target_link_options(Luau.Web PRIVATE -sSINGLE_FILE=1) endif() -add_subdirectory(fuzz) - # validate dependencies for internal libraries foreach(LIB Luau.Ast Luau.Compiler Luau.Config Luau.Analysis Luau.EqSat Luau.CodeGen Luau.VM) if(TARGET ${LIB})