diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-03-08 10:24:33 -0800 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-03-12 13:36:41 -0700 |
commit | 3da1e2e24fb713e87984bc18d7c1c4c44a97fa47 (patch) | |
tree | 132315885208178adde42abf1100acf5379661a8 /debug.mk | |
parent | 97273d31d812b3ead12fa050fd90c03dafa4f26c (diff) |
Support Debug/Release configurations
- Puts shared flags in scripts/standalone and adds "build configurations"
for debug and release which customize the build flags for specific
purposes.
- Documents CONFIGURATION in Sphinx docs and makefile help
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'debug.mk')
-rw-r--r-- | debug.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debug.mk b/debug.mk new file mode 100644 index 0000000..b57cfc0 --- /dev/null +++ b/debug.mk @@ -0,0 +1,12 @@ +################################################### +# Build Flags for the Debug Configuration +################################################### + +# Set the optimization level +RISCV_CFLAGS += -O0 +RISCV_CXXFLAGS += -O0 + +# Enable debug +RISCV_CFLAGS += -g +RISCV_CXXFLAGS += -g + |