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.
This commit is contained in:
ffrostfall 2025-08-21 09:51:52 -04:00 committed by GitHub
parent 55f3e00938
commit 31725a6521
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -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 Luau.Compiler Luau.Config Luau.CodeGen Luau.VM Luau.Require Luau.CLI.lib isocline)
target_link_libraries(Luau.CLI.Test PRIVATE osthreads) target_link_libraries(Luau.CLI.Test PRIVATE osthreads)
add_subdirectory(fuzz)
endif() endif()
if(LUAU_BUILD_WEB) if(LUAU_BUILD_WEB)
@ -282,8 +283,6 @@ if(LUAU_BUILD_WEB)
target_link_options(Luau.Web PRIVATE -sSINGLE_FILE=1) target_link_options(Luau.Web PRIVATE -sSINGLE_FILE=1)
endif() endif()
add_subdirectory(fuzz)
# validate dependencies for internal libraries # validate dependencies for internal libraries
foreach(LIB Luau.Ast Luau.Compiler Luau.Config Luau.Analysis Luau.EqSat Luau.CodeGen Luau.VM) foreach(LIB Luau.Ast Luau.Compiler Luau.Config Luau.Analysis Luau.EqSat Luau.CodeGen Luau.VM)
if(TARGET ${LIB}) if(TARGET ${LIB})