From 85b7ce8c2f6daf0db80e801d7fb2503d070765ce Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sun, 7 Jul 2024 11:01:52 +0200 Subject: [PATCH] LibJS: Add missing `ValueInlines.h` include for `Value::to_numeric` When compiling with `-O2 -g1` optimizations (as done in the main Serenity build), no out-of-line definitions end up emitted for `Value::to_numeric`, causing files that reference the function but don't include the definition from `ValueInlines.h` to add an undefined reference in LibJS.so. --- Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp b/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp index 3890dc670733ff..8a476e1367e61f 100644 --- a/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #if defined(AK_COMPILER_CLANG) # define EPSILON_VALUE AK::exp2(-52.)