1
0
Fork 0
This commit is contained in:
CRy386i 2025-07-21 15:59:52 +03:00
parent 3b5d375683
commit 02f88b3593
11 changed files with 321 additions and 0 deletions

View file

@ -0,0 +1,28 @@
From 0d7ce033b5b4bc33cc02e85a8c56e23e68694211 Mon Sep 17 00:00:00 2001
From: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
Date: Mon, 10 Mar 2025 01:35:36 +0200
Subject: [PATCH] Add #include <cstdint> to fix building with gcc 15
With gcc 15, the C++ Standard Library no longer includes other headers
that were internally used by the library. In luau's case the missing
header is <cstdint>
Downstream Gentoo bug: https://bugs.gentoo.org/938122
Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
---
Analysis/src/TypedAllocator.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Analysis/src/TypedAllocator.cpp b/Analysis/src/TypedAllocator.cpp
index a2f49afbd..16c844e8d 100644
--- a/Analysis/src/TypedAllocator.cpp
+++ b/Analysis/src/TypedAllocator.cpp
@@ -26,6 +26,8 @@ const size_t kPageSize = sysconf(_SC_PAGESIZE);
#include <stdlib.h>
+#include <cstdint>
+
LUAU_FASTFLAG(DebugLuauFreezeArena)
namespace Luau

View file

@ -0,0 +1,19 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ if(EXT_PLATFORM_STRING)
return()
endif()
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.20)
option(LUAU_BUILD_CLI "Build CLI" ON)
option(LUAU_BUILD_TESTS "Build tests" ON)
@@ -17,7 +17,6 @@ cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0091 NEW)
if(LUAU_STATIC_CRT)
- cmake_minimum_required(VERSION 3.15)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

View file

@ -0,0 +1,19 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ if(EXT_PLATFORM_STRING)
return()
endif()
-cmake_minimum_required(VERSION 3.10)
+cmake_minimum_required(VERSION 3.20)
option(LUAU_BUILD_CLI "Build CLI" ON)
option(LUAU_BUILD_TESTS "Build tests" ON)
@@ -17,7 +17,6 @@ cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0091 NEW)
if(LUAU_STATIC_CRT)
- cmake_minimum_required(VERSION 3.15)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()