From 0492ecffdfae8c838067494f5761627b5563cb5a Mon Sep 17 00:00:00 2001 From: Kostadin Date: Thu, 16 Nov 2023 21:51:16 +0200 Subject: [PATCH] Add #include to fix building with gcc 14 (#1104) With gcc 14 some C++ Standard Library headers have been changed to no longer include other headers that were used internally by the library. In luau's case it is the `` header. --- Analysis/src/ConstraintSolver.cpp | 1 + Analysis/src/Instantiation.cpp | 2 ++ CodeGen/src/IrAnalysis.cpp | 1 + tests/RuntimeLimits.test.cpp | 2 ++ 4 files changed, 6 insertions(+) diff --git a/Analysis/src/ConstraintSolver.cpp b/Analysis/src/ConstraintSolver.cpp index c056a150f..482997c4c 100644 --- a/Analysis/src/ConstraintSolver.cpp +++ b/Analysis/src/ConstraintSolver.cpp @@ -17,6 +17,7 @@ #include "Luau/TypeUtils.h" #include "Luau/Unifier2.h" #include "Luau/VisitType.h" +#include #include LUAU_FASTFLAGVARIABLE(DebugLuauLogSolver, false); diff --git a/Analysis/src/Instantiation.cpp b/Analysis/src/Instantiation.cpp index e74ece06e..235786a8a 100644 --- a/Analysis/src/Instantiation.cpp +++ b/Analysis/src/Instantiation.cpp @@ -7,6 +7,8 @@ #include "Luau/TypeArena.h" #include "Luau/TypeCheckLimits.h" +#include + LUAU_FASTFLAG(DebugLuauDeferredConstraintResolution) namespace Luau diff --git a/CodeGen/src/IrAnalysis.cpp b/CodeGen/src/IrAnalysis.cpp index 63f48ed4c..e848970a9 100644 --- a/CodeGen/src/IrAnalysis.cpp +++ b/CodeGen/src/IrAnalysis.cpp @@ -8,6 +8,7 @@ #include "lobject.h" +#include #include #include diff --git a/tests/RuntimeLimits.test.cpp b/tests/RuntimeLimits.test.cpp index 3ea60ee7c..3bf063339 100644 --- a/tests/RuntimeLimits.test.cpp +++ b/tests/RuntimeLimits.test.cpp @@ -13,6 +13,8 @@ #include "doctest.h" +#include + using namespace Luau; struct LimitFixture : BuiltinsFixture