From df6d01a9649b282fcfdaa8868f1ee701c46d4e5e Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Tue, 17 Sep 2024 16:58:59 -0600 Subject: [PATCH] Minor fix to static builds --- bootstrap/lib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap/lib.h b/bootstrap/lib.h index 2ddd879..3dd4982 100644 --- a/bootstrap/lib.h +++ b/bootstrap/lib.h @@ -1515,6 +1515,7 @@ may_be_unused fn u64 os_timer_get() may_be_unused fn void calibrate_cpu_timer() { +#ifndef SILENT #if LINK_LIBC // clock_getres(CLOCK_MONOTONIC, &cpu_resolution); #else @@ -1535,6 +1536,7 @@ may_be_unused fn void calibrate_cpu_timer() u64 cpu_elapsed = cpu_end - cpu_start; cpu_frequency = os_frequency * cpu_elapsed / os_elapsed; #endif +#endif } fn u8* reserve(u64 size)