diff --git a/Core/project.lua b/Core/project.lua index a47ebde..50d8b0d 100644 --- a/Core/project.lua +++ b/Core/project.lua @@ -158,6 +158,15 @@ local function configureProjectForPlatforms(projType) end local function configureProjectCPUTarget() + filter { "toolset:msc"} + defines {"AURORA_RUNTIME_MEMCMP=__builtin_memcmp"} + defines {"AURORA_RUNTIME_MEMCMP_=1"} + filter {} + + filter { "toolset:msc", "architecture:x86_64"} + buildoptions { "/arch:AVX" } + filter {} + filter { "toolset:clang", "architecture:x86_64"} -- Some discount VPSes might be running on this dead architecture -- Haswell introduced AVX2. @@ -168,8 +177,10 @@ local function configureProjectCPUTarget() disablewarnings { "dynamic-class-memaccess" } defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"} defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"} + defines {"AURORA_RUNTIME_MEMCMP=__builtin_memcmp"} defines {"AURORA_RUNTIME_MEMSET_=1"} defines {"AURORA_RUNTIME_MEMCPY_=1"} + defines {"AURORA_RUNTIME_MEMCMP_=1"} filter {} filter { "toolset:clang", "architecture:x86"} @@ -178,8 +189,10 @@ local function configureProjectCPUTarget() disablewarnings { "dynamic-class-memaccess" } defines {"AURORA_RUNTIME_MEMSET=__builtin_memset"} defines {"AURORA_RUNTIME_MEMCPY=__builtin_memcpy"} + defines {"AURORA_RUNTIME_MEMCMP=__builtin_memcmp"} defines {"AURORA_RUNTIME_MEMSET_=1"} defines {"AURORA_RUNTIME_MEMCPY_=1"} + defines {"AURORA_RUNTIME_MEMCMP_=1"} filter {} end