SIMD: AVX WIP.

This commit is contained in:
Branimir Karadžić
2016-08-14 21:18:18 -07:00
parent 68f9ee72a7
commit 76d42a9e03
5 changed files with 280 additions and 48 deletions

View File

@@ -100,6 +100,11 @@ function toolchain(_buildDir, _libDir)
description = "Use 32-bit compiler instead 64-bit.",
}
newoption {
trigger = "with-avx",
description = "Use AVX extension.",
}
-- Avoid error when invoking genie --help.
if (_ACTION == nil) then return false end
@@ -460,6 +465,10 @@ function toolchain(_buildDir, _libDir)
flags { "StaticRuntime" }
end
if _OPTIONS["with-avx"] then
flags { "EnableAVX" }
end
flags {
"NoPCH",
"NativeWChar",