summaryrefslogtreecommitdiff
path: root/debug.mk
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-03-13 16:55:29 +0000
committerGitHub <noreply@github.com>2019-03-13 16:55:29 +0000
commita08201f87076002f585edac7e94b28c7ebf22cc1 (patch)
tree9ab34c83711fa9dff0b4719fc6a4b50bcd97af17 /debug.mk
parent97273d31d812b3ead12fa050fd90c03dafa4f26c (diff)
parent74fa7c2f23d7639781cf23101488d797cd06aec6 (diff)
Merge pull request #200 from sifive/debugrelease
Support Debug/Release build configurations
Diffstat (limited to 'debug.mk')
-rw-r--r--debug.mk12
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
+