From 1b34dee81e6ba6447cb586c06e496c640e935712 Mon Sep 17 00:00:00 2001 From: sfrembling Date: Mon, 23 Mar 2026 10:13:26 -0600 Subject: [PATCH] Update README.md --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 881b276..f385c86 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,29 @@ This is a toy project not meant to be taken very seriously. ## Requirements for Use -[GCC](https://en.wikipedia.org/wiki/GNU_Compiler_Collection) is required as it is currently the back-end tool used to compile the C code. +[GCC](https://en.wikipedia.org/wiki/GNU_Compiler_Collection) is recommended as the compiler installed for `Pallet` projects. -This tool calls `gcc` internally, so without it, it would fail. +You can define a different `gcc` compatible compiler instead per-project by editing `Pallet.toml`: -At some point I would like to update `Pallet.toml` to instead allow more configuring of how the build should be performed. +```toml +name = "my-app" +default_build = "debug" +compiler = "clang" + +[[build]] +name = "debug" +args = [ + "-g", + "-O0", +] + +[[build]] +name = "release" +args = [ + "-DNDEBUG", + "-O3", +] +``` ## Usage