aboutsummaryrefslogtreecommitdiff
path: root/src/bug_report.cpp
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-02-20 23:23:56 +0100
committerLaytan Laats <laytanlaats@hotmail.com>2024-02-20 23:23:56 +0100
commitdb87c346131df5b7d7d673793df6117738ab15d9 (patch)
tree10625c5606d14333fd58c45d42809389bfbe49b8 /src/bug_report.cpp
parent159257597a5874c0bb5d23b2408c512ce0d6fc58 (diff)
Add backend info to `odin report`
Diffstat (limited to 'src/bug_report.cpp')
-rw-r--r--src/bug_report.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/bug_report.cpp b/src/bug_report.cpp
index 3fe499dd9..b58d14bbf 100644
--- a/src/bug_report.cpp
+++ b/src/bug_report.cpp
@@ -170,7 +170,7 @@ gb_internal void odin_cpuid(int leaf, int result[]) {
}
gb_internal void report_cpu_info() {
- gb_printf("\tCPU: ");
+ gb_printf("\tCPU: ");
#if defined(GB_CPU_X86)
@@ -221,7 +221,7 @@ gb_internal void report_cpu_info() {
Report the amount of installed RAM.
*/
gb_internal void report_ram_info() {
- gb_printf("\tRAM: ");
+ gb_printf("\tRAM: ");
#if defined(GB_SYSTEM_WINDOWS)
MEMORYSTATUSEX statex;
@@ -272,7 +272,7 @@ gb_internal void report_ram_info() {
}
gb_internal void report_os_info() {
- gb_printf("\tOS: ");
+ gb_printf("\tOS: ");
#if defined(GB_SYSTEM_WINDOWS)
/*
@@ -1019,6 +1019,10 @@ gb_internal void report_os_info() {
#endif
}
+gb_internal void report_backend_info() {
+ gb_printf("\tBackend: LLVM %s\n", LLVM_VERSION_STRING);
+}
+
// NOTE(Jeroen): `odin report` prints some system information for easier bug reporting.
gb_internal void print_bug_report_help() {
gb_printf("Where to find more information and get into contact when you encounter a bug:\n\n");
@@ -1032,7 +1036,7 @@ gb_internal void print_bug_report_help() {
gb_printf("Useful information to add to a bug report:\n\n");
- gb_printf("\tOdin: %.*s", LIT(ODIN_VERSION));
+ gb_printf("\tOdin: %.*s", LIT(ODIN_VERSION));
#ifdef NIGHTLY
gb_printf("-nightly");
@@ -1058,4 +1062,6 @@ gb_internal void print_bug_report_help() {
And RAM info.
*/
report_ram_info();
+
+ report_backend_info();
}