Skip to content

Commit

Permalink
force target and editon in the command
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangff committed May 26, 2024
1 parent 7ef4ffb commit cca882b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/first/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ add_requires("cargo::patternsleuth_bind", { debug = is_mode_debug(), configs = {
target("patternsleuth_bind")
set_kind("static")
set_values("rust.cratetype", "staticlib")
set_values("rust.edition", "2021")
add_files("patternsleuth_bind/src/lib.rs")
if is_plat("linux") and is_host("windows") then
add_rcflags("--target=x86_64-unknown-linux-gnu", {force = true})
end
add_packages("cargo::patternsleuth_bind")
if is_plat("windows") then
add_links("ws2_32", "advapi32", "userenv", "ntdll", "oleaut32", "bcrypt", "ole32", { public = true })
Expand Down

0 comments on commit cca882b

Please sign in to comment.