[*] Once again, fuck off you dumbshit coooompiler devs

This commit is contained in:
Reece Wilson 2024-06-19 22:18:25 +01:00 committed by Jamie Reece Wilson
parent 4c7af7a8af
commit 382e5c8b1d

View File

@ -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. -- 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. -- Lets sit between v2 and v3 by a single intel generation.
buildoptions { "-march=ivybridge" } buildoptions { "-march=ivybridge" }
disablewarnings { "dynamic-class-memaccess" }
defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"} defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"}
defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"} defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"}
defines {"AURORA_RUNTIME_MEMSET_=1"} defines {"AURORA_RUNTIME_MEMSET_=1"}
@ -174,6 +175,7 @@ local function configureProjectCPUTarget()
filter { "toolset:clang", "architecture:x86"} filter { "toolset:clang", "architecture:x86"}
-- Let Linux x86_32 support Intel Core+ (2006) CPUs -- Let Linux x86_32 support Intel Core+ (2006) CPUs
buildoptions { "-march=core2" } buildoptions { "-march=core2" }
disablewarnings { "dynamic-class-memaccess" }
defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"} defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"}
defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"} defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"}
defines {"AURORA_RUNTIME_MEMSET_=1"} defines {"AURORA_RUNTIME_MEMSET_=1"}
@ -188,7 +190,7 @@ local function configureProjectErrors()
filter {"toolset:clang"} filter {"toolset:clang"}
buildoptions {"-fms-extensions"} buildoptions {"-fms-extensions"}
buildoptions {"-fvolatile:ms"} --buildoptions {"-fevolatile:ms"}
-- The fucking retard cunts behind clang acknowledge there's a 2x slowdown here. -- 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, -- Not only that, GCC optimize("no-stack-protector") is broken (ive tried other attributes), their ms stack guard check doesnt do anything,