[premake] Only define ZSTD_DISABLE_ASM on non-MSVC
MSVC doesn't compile with BMI(2) by default so there's no point. DYNAMIC_BMI2 needs to be defined to enable it, but it's disabled since it bloats binary size.
This commit is contained in:
9
third_party/zstd.lua
vendored
9
third_party/zstd.lua
vendored
@@ -3,8 +3,9 @@ include("third_party/zstd/contrib/premake/zstd.lua")
|
|||||||
group("third_party")
|
group("third_party")
|
||||||
project("zstd")
|
project("zstd")
|
||||||
uuid("df336aac-f0c8-11ed-a05b-0242ac120003")
|
uuid("df336aac-f0c8-11ed-a05b-0242ac120003")
|
||||||
-- TODO: https://github.com/facebook/zstd/issues/3278
|
-- https://gitlab.kitware.com/cmake/cmake/-/issues/25744
|
||||||
--defines({
|
filter({"toolset:not msc"})
|
||||||
-- "ZSTD_DISABLE_ASM",
|
defines({
|
||||||
--})
|
"ZSTD_DISABLE_ASM",
|
||||||
|
})
|
||||||
project_zstd("zstd/lib/")
|
project_zstd("zstd/lib/")
|
||||||
|
|||||||
Reference in New Issue
Block a user