mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Kernel: Wrap format timespec assignment in a check for !AARCH64
Currently TimeManagement wont compile on AARCH64, so it is not included. This creates a link error since format.cpp now relies on functionality in TimeManagement.cpp to add timestamps to log lines. This PR disables that functionality for AARCH64 builds until TimeManagement will compile.
This commit is contained in:
parent
f538df7572
commit
bcd518a228
Notes:
sideshowbarker
2024-07-18 00:55:54 +09:00
Author: https://github.com/jamesmintram Commit: https://github.com/SerenityOS/serenity/commit/bcd518a2284 Pull-request: https://github.com/SerenityOS/serenity/pull/10989
@ -873,8 +873,11 @@ void vdmesgln(StringView fmtstr, TypeErasedFormatParams& params)
|
||||
|
||||
# ifdef __serenity__
|
||||
struct timespec ts = {};
|
||||
|
||||
# if !ARCH(AARCH64)
|
||||
if (TimeManagement::is_initialized())
|
||||
ts = TimeManagement::the().monotonic_time(TimePrecision::Coarse).to_timespec();
|
||||
# endif
|
||||
|
||||
if (Kernel::Processor::is_initialized() && Kernel::Thread::current()) {
|
||||
auto& thread = *Kernel::Thread::current();
|
||||
|
Loading…
Reference in New Issue
Block a user