update readme to reflect debug/release builds

This commit is contained in:
Benji Dial 2026-01-01 00:09:28 -05:00
parent a69dbc3c7a
commit 8d1785fb06

View file

@ -24,7 +24,7 @@ On Debian, it is sufficient to run this command:
To build Calcite, run these commands: To build Calcite, run these commands:
sh get-dependencies.sh sh get-dependencies.sh
sh make-build.sh sh make-build.sh release
ninja ninja
This will build a disk image at "build/disk.iso" that can be booted with This will build a disk image at "build/disk.iso" that can be booted with
@ -43,13 +43,13 @@ Then, just run "gdb -x qemu.gdb". Calcite will be booted in QEMU, and GDB will
be attached to it. Use "c" or "continue" in GDB to start execution. be attached to it. Use "c" or "continue" in GDB to start execution.
While debugging, it is useful to disable optimizations and enable debugging While debugging, it is useful to disable optimizations and enable debugging
information. In "make-build.sh", under COMMON_CC_EXTRA_FLAGS, you can change information. If you already built Calcite in "release" mode, run:
"-O3" to "-O0 -ggdb". Then, run these commands to rebuild: rm -r build build.ninja
rm -r build sh make-build.sh debug
rm build.ninja
sh make-build.sh
ninja ninja
If you did not already built Calcite, then you do not need the first command.
=== License === License
Calcite is Copyright 2025 Benji Dial, and licensed under the GNU GPL v3. See Calcite is Copyright 2025 Benji Dial, and licensed under the GNU GPL v3. See