From 4eaf3c665e8c0b028a7ea02a0fbcb1950c8b1a25 Mon Sep 17 00:00:00 2001 From: mlarouche Date: Tue, 16 Nov 2021 12:45:33 -0500 Subject: [PATCH] Fix linking errors with floorl on MSVC by including math.h in a .cpp file. floorl is a force inline function defined in a header thus not visible for the linker. --- src/stage1/os.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stage1/os.cpp b/src/stage1/os.cpp index 89a9dcc944..776d2a2915 100644 --- a/src/stage1/os.cpp +++ b/src/stage1/os.cpp @@ -41,6 +41,7 @@ #include #include #include +#include // Workaround an upstream LLVM issue. // See https://github.com/ziglang/zig/issues/7614#issuecomment-752939981