C++11 support / Visual C++ 2013 CTP
I am interested in using Appveyor to build C++ code that depends
on C++11 features. So far I've been testing https://ci.appveyor.com/project/springmeyer/variant
and have noticed compiler errors that indicate lacking support for
the constexpr
keyword. This is a known issue with the
2013 compiler addressed in this update:
http://blogs.msdn.com/b/vcblog/archive/2013/11/18/announcing-the-vi...
Would it be possible to provide that version on appveyor instances?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 20 May, 2014 05:44 PM
Hi Dane,
Can that CTP be installed side-by-side with VC++ 2013. I mean does it override C++ compiler that is part of VS 2013 installation?
2 Posted by dane on 20 May, 2014 07:28 PM
I'm not sure - I've not yet started running this version locally (part of why I'm interested in using Appveyor).
Support Staff 3 Posted by Feodor Fitsner on 20 May, 2014 07:35 PM
Well, I feel it is something affecting all clients, so we'd like to be sure it's going to be OK before backing it into build working images :)
4 Posted by Wilhelm Berg on 21 May, 2014 07:48 AM
Hi Feodor and Dane,
@Feodor No it wouldn't override the default compiler, it would be an additional compiler:
See "Instructions" at the official Download:
http://www.microsoft.com/en-ie/download/details.aspx?id=41151
@Dane Probably we could include the download and install of the CTP into the build processs.
Maybe via Web Platform Installer or manually.
It's only 33MB.
Although I'm not sure, if gyp is able to create a solution file that is compatible with the instructions mentioned above.
Willy
Support Staff 5 Posted by Feodor Fitsner on 21 May, 2014 04:43 PM
Hi Willy,
Thanks for your notes! This is good the update could be installed side-by-side.
- Feodor
6 Posted by dane on 22 May, 2014 08:58 PM
Thanks Willy. You are exactly right. Locally on Windows 7 I confirmed that the install is totally separate. And then I also confirmed that my code compiles with it, just as I hoped.
Feodor: would it be possible to include this extra compiler toolchain by default soon? I've got a number of projects that will be moving to c++11 so this would be really nice to have.
Btw, it is easy to ask msbuild to use this alternative compiler simply by setting a custom
Platform Toolset
in the project file.Support Staff 7 Posted by Feodor Fitsner on 22 May, 2014 11:37 PM
Not sure about making it a default choice, but we can install this update to build machines, so you can tweak your project file to use it.
8 Posted by dane on 22 May, 2014 11:41 PM
Exactly: I don't think it should be default. As long as it is installed users that need this toolchain can simply tweak their project file. For reference: I'm using GYP to generate visual studio projects and the only tweak I needed was this line: https://github.com/mapbox/variant/blob/20f26eceebef717a0ee759b42bfe...
Support Staff 9 Posted by Feodor Fitsner on 23 May, 2014 06:13 AM
C++ 11 update has been deployed to build workers.
10 Posted by dane on 24 May, 2014 01:23 AM
Brilliant, works like a charm! Thank you.
Support Staff 11 Posted by Feodor Fitsner on 24 May, 2014 01:29 AM
Cool, thanks for the update!
12 Posted by dane on 13 Jun, 2014 12:49 AM
Visual studio 2014 preview with more C++11 features is now available: http://www.visualstudio.com/en-us/downloads/visual-studio-14-ctp-vs.... I'm still doing okay with the 2013 CTP update at this point, but I could see needing this in the future. For now I will close this issue however.
dane closed this discussion on 13 Jun, 2014 12:49 AM.