mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
SIMD: AVX WIP.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user