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

add /sdl, /Zc:inline and ExceptionHandling flag support for xmake project -k vs #5416

Merged
merged 4 commits into from
Aug 7, 2024

Conversation

jinke18
Copy link
Contributor

@jinke18 jinke18 commented Jul 30, 2024

i add /sdl and /Zc:inline flag support for xmake project -k vs

@jinke18 jinke18 changed the title add /sdl and /Zc:inline flag support for xmake project -k vs add /sdl, /Zc:inline and ExceptionHandling flag support for xmake project -k vs Jul 30, 2024
if flagstr:find("[%-/]EH[asc]+%-?") then
local args = flagstr:match("[%-/]EH([asc]+%-?)")
-- remove the last arg if flag endwith `-`
if arg:sub(-1, -1) == "-" then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arg? args? please use :endswith("-") instead of sub

if arg:sub(-1, -1) == "-" then
args = args:sub(1, -2)
end
if args:find("a") then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

args may be nil, if args and args:find("a", 1, true)

@waruqi waruqi added this to the v2.9.5 milestone Aug 7, 2024
@waruqi waruqi merged commit 5e1dfa5 into xmake-io:dev Aug 7, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants