Skip to content

Commit

Permalink
aws-lc: fix mingw build
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Jul 11, 2024
1 parent 9975679 commit f29188a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/a/aws-lc/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package("aws-lc")
add_configs("tools", {description = "Build tools", default = false, type = "boolean"})

add_deps("cmake")
if is_plat("windows") then
if is_plat("windows", "mingw") or is_host("windows") then
add_deps("nasm")
end

Expand All @@ -23,7 +23,7 @@ package("aws-lc")
add_syslinks("pthread", "dl", "m")
end

on_install(function (package)
on_install("!cross", function (package)
if package:config("shared") and package:is_plat("windows") then
package:add("defines", "BORINGSSL_SHARED_LIBRARY")
end
Expand Down

0 comments on commit f29188a

Please sign in to comment.