From 382e5c8b1d58f9e71bdf03b54986af7a466cd15e Mon Sep 17 00:00:00 2001 From: J Reece Wilson Date: Wed, 19 Jun 2024 22:18:25 +0100 Subject: [PATCH] [*] Once again, fuck off you dumbshit coooompiler devs --- Core/project.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/project.lua b/Core/project.lua index af3e282..a47ebde 100644 --- a/Core/project.lua +++ b/Core/project.lua @@ -165,6 +165,7 @@ local function configureProjectCPUTarget() -- Dunno if intentional because SSE4.1 >= AVX, but either way, let's get some modern CPU features in an otherwise widely supported binary. -- Lets sit between v2 and v3 by a single intel generation. buildoptions { "-march=ivybridge" } + disablewarnings { "dynamic-class-memaccess" } defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"} defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"} defines {"AURORA_RUNTIME_MEMSET_=1"} @@ -174,6 +175,7 @@ local function configureProjectCPUTarget() filter { "toolset:clang", "architecture:x86"} -- Let Linux x86_32 support Intel Core+ (2006) CPUs buildoptions { "-march=core2" } + disablewarnings { "dynamic-class-memaccess" } defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"} defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"} defines {"AURORA_RUNTIME_MEMSET_=1"} @@ -188,7 +190,7 @@ local function configureProjectErrors() filter {"toolset:clang"} buildoptions {"-fms-extensions"} - buildoptions {"-fvolatile:ms"} + --buildoptions {"-fevolatile:ms"} -- The fucking retard cunts behind clang acknowledge there's a 2x slowdown here. -- Not only that, GCC optimize("no-stack-protector") is broken (ive tried other attributes), their ms stack guard check doesnt do anything,