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 Support for c11 and c17 for MSVC Version 16.8 and Above #986

Closed
RoyiAvital opened this issue Oct 7, 2020 · 3 comments
Closed

Add Support for c11 and c17 for MSVC Version 16.8 and Above #986

RoyiAvital opened this issue Oct 7, 2020 · 3 comments

Comments

@RoyiAvital
Copy link

Microsoft will soon add c11 and c17 support for it MSVC. For reference see C11 and C17 Standard Support Arriving in MSVC.

In case of xmake recognizes MSVC 16.8 and above it should map the c_std parameter to the MSVC equivalent.
For lower versions it should say the feature is invalid.

@waruqi waruqi added this to the v2.3.8 milestone Oct 7, 2020
@waruqi
Copy link
Member

waruqi commented Oct 7, 2020

I have supported for them.

set_languages("c11")
set_languages("c17")

@RoyiAvital
Copy link
Author

Do you mean for MSVC version 16.8?

@waruqi
Copy link
Member

waruqi commented Oct 8, 2020

Yeah, I have tested it. It works fine for msvc 16.8 preview.

If the lower version of msvc is not supported, xmake will automatically ignore them. /std:c17 ..

@waruqi waruqi closed this as completed Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants