From d9e46424725d1f878a0d0767098be33220fa0e74 Mon Sep 17 00:00:00 2001 From: Interfiber Date: Sun, 29 Sep 2024 14:53:51 -0400 Subject: [PATCH] document profile support --- spec/ext/GRBC_EXT_profiles.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 spec/ext/GRBC_EXT_profiles.md diff --git a/spec/ext/GRBC_EXT_profiles.md b/spec/ext/GRBC_EXT_profiles.md new file mode 100644 index 0000000..81451db --- /dev/null +++ b/spec/ext/GRBC_EXT_profiles.md @@ -0,0 +1,31 @@ +# GRBC_EXT_profiles +compiler profile support in grbc + +## About +Author: Interfiber +Release Date: 9/29/24 + +## Example +```lua +-- Load extension, by default the debug profile is selected +grbc_ext("GRBC_EXT_profiles") + +-- Set the profile, make sure this is at the top of the file! +-- See below for default profiles +grbc_set_profile("debug") + + +``` + +## Profiles +For more detailed information see ```src/ext_profiles.cc``` + +### debug +Standard debug profile, ```-O1```, and debug symbol generation + +### release_with_debug_symbols +Release build but with debug symbol generation, uses ```-O3``` + +## release +Release build with ```-O3``` +