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

c++17 support #5513

Closed
dylhunn opened this issue Aug 23, 2017 · 5 comments
Closed

c++17 support #5513

dylhunn opened this issue Aug 23, 2017 · 5 comments

Comments

@dylhunn
Copy link

dylhunn commented Aug 23, 2017

This is more of a question than an issue.

I am trying to run ./em++ -g -std=c++17 test.cpp, but emscripten doesn't appear to know about c++17. Are there any plans for this, or a workaround?

@dschuff
Copy link
Member

dschuff commented Aug 23, 2017

Emscripten's C++ support tracks with the version of clang and libcxx that it uses. You can see the feature matrix here: https://clang.llvm.org/cxx_status.html Currently fastcomp is at clang 4.0. 5.0 just branched so maybe someone will update fastcomp sometime soon (for WebAssembly there is also the upstream LLVM, which tracks LLVM's trunk, if you want to live on the edge). For C++17 specifically, you can use the -std=c++1z option instead of -std=c++17 because the standard is not fully finalized (or was not as of clang 4.0)

@dylhunn
Copy link
Author

dylhunn commented Aug 23, 2017

Thank you; -std=c++1z provides the c++17 features I needed.

@kripken kripken closed this as completed Sep 21, 2017
@soloproc
Copy link

So is it support C++17 fully now? @dschuff

@soloproc
Copy link

So is it support C++17 fully now? @dschuff

oooh, i see.

@sbc100
Copy link
Collaborator

sbc100 commented Mar 26, 2019

Yes. Fastcomp is now on clang 6.0 and apparently "Clang 5 and later implement all the features of the ISO C++ 2017 standard."

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

No branches or pull requests

5 participants