@@ -919,43 +919,38 @@ namespace vix::commands::BuildCommand
919919
920920 out << " Options:\n " ;
921921 out << " --preset <name> Preset to use (dev, dev-ninja, release)\n " ;
922- out << " --target <triple> Cross-compilation target triple (auto "
923- " toolchain)\n " ;
922+ out << " --target <triple> Cross-compilation target triple (auto toolchain)\n " ;
924923 out << " --sysroot <path> Sysroot for cross toolchain (optional)\n " ;
925- out << " --static Request static linking "
926- " (VIX_LINK_STATIC=ON)\n " ;
927- out << " -j, --jobs <n> Parallel build jobs (default: CPU count, "
928- " clamped)\n " ;
924+ out << " --static Request static linking (VIX_LINK_STATIC=ON)\n " ;
925+ out << " -j, --jobs <n> Parallel build jobs (default: CPU count, clamped)\n " ;
929926 out << " --clean Force reconfigure (ignore cache/signature)\n " ;
930927 out << " --no-cache Disable signature cache shortcut\n " ;
931- out << " --fast Fast loop: if Ninja says up-to-date, exit "
932- " immediately\n " ;
933- out << " --linker <mode> auto|default|mold|lld (auto prefers mold "
934- " then lld)\n " ;
935- out << " --launcher <mode> auto|none|sccache|ccache (auto prefers "
936- " sccache)\n " ;
928+ out << " --fast Fast loop: if Ninja says up-to-date, exit immediately\n " ;
929+ out << " --linker <mode> auto|default|mold|lld (auto prefers mold then lld)\n " ;
930+ out << " --launcher <mode> auto|none|sccache|ccache (auto prefers sccache)\n " ;
937931 out << " --no-status Disable NINJA_STATUS progress format\n " ;
938932 out << " --no-up-to-date Disable Ninja dry-run up-to-date detection\n " ;
939- out << " -d, --dir <path> Project directory (where CMakeLists.txt "
940- " lives)\n " ;
933+ out << " -d, --dir <path> Project directory (where CMakeLists.txt lives)\n " ;
941934 out << " -q, --quiet Minimal output (still logs to files)\n " ;
942935 out << " --targets List detected cross toolchains on PATH\n " ;
943- out << " --cmake-verbose Show raw CMake configure output (no summary "
944- " filtering)\n " ;
945- out << " --build-target <name> Build only a specific CMake target (ex: "
946- " blog)\n " ;
936+ out << " --cmake-verbose Show raw CMake configure output (no summary filtering)\n " ;
937+ out << " --build-target <name> Build only a specific CMake target (ex: blog)\n " ;
947938 out << " -h, --help Show this help\n\n " ;
948939
940+ out << " Environment variables:\n " ;
941+ out << " VIX_BUILD_HEARTBEAT=1 Enable build heartbeat when no output is produced\n " ;
942+ out << " for several seconds (disabled by default)\n\n " ;
943+
949944 out << " Examples:\n " ;
950945 out << " vix build\n " ;
951946 out << " vix build --fast\n " ;
952947 out << " vix build --preset release\n " ;
953948 out << " vix build --preset release --static\n " ;
954949 out << " vix build --launcher sccache --linker mold\n " ;
955950 out << " vix build --target aarch64-linux-gnu\n " ;
956- out << " vix build --preset release -target aarch64-linux-gnu\n " ;
951+ out << " vix build --preset release -- target aarch64-linux-gnu\n " ;
957952 out << " vix build --linker lld -- -DVIX_SYNC_BUILD_TESTS=ON\n " ;
958-
953+ out << " VIX_BUILD_HEARTBEAT=1 vix build \n " ;
959954 out << " vix build -j 8\n\n " ;
960955
961956 out << " Logs:\n " ;
@@ -964,4 +959,5 @@ namespace vix::commands::BuildCommand
964959
965960 return 0 ;
966961 }
962+
967963} // namespace vix::commands::BuildCommand
0 commit comments