Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vs_runtime #4997

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions xmake/modules/package/tools/meson.lua
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,17 @@ function _get_configs(package, configs, opt)
elseif package:has_runtime("MDd") then
table.insert(configs, "-Db_vscrt=mdd")
end
else
local runtime = package:config("vs_runtime")
if runtime == "MT" then
table.insert(configs, "-Db_vscrt=mt")
elseif runtime == "MTd" then
table.insert(configs, "-Db_vscrt=mtd")
elseif runtime == "MD" then
table.insert(configs, "-Db_vscrt=md")
elseif runtime == "MDd" then
table.insert(configs, "-Db_vscrt=mdd")
end
end

-- add cross file
Expand Down
Loading