Fix broken clang-tidy script

--target option was removed for configuration stage execution of CMake
This commit is contained in:
Alexander Harkness 2024-11-02 11:07:14 +00:00
parent 4b90000b8c
commit eac284d4d3

View File

@ -19,7 +19,7 @@ cd tidy-build
# Disable precompiled headers since they aren't generated during linting which causes an error
# Disable unity builds since clang-tidy needs the full list of compiled files to check each one
cmake --target Cuberite -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes -DPRECOMPILE_HEADERS=No -DUNITY_BUILDS=No ..
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=Yes -DPRECOMPILE_HEADERS=No -DUNITY_BUILDS=No ..
# Ensure LuaState_Typedefs.inc has been generated
(cd ../src/Bindings && lua BindingsProcessor.lua)