Re: Fennec now builds with clang instead of gcc

2017-10-29 Thread Jim Blandy
As I said in the other thread, I'm eager for generic lambdas. They would
let me avoid trying to resurrect mfbt/Function.h and adding support for
allocation policies! So: quite eager.

On Sun, Oct 29, 2017 at 6:19 PM, Makoto Kato 
wrote:

> Great!  BTW, is minimal requirement of NDK version changed to NDK r15c
> that is used on taskcluster job?  Or does it keeps NDK r11c?
>
> -- Makoto
>
>
> On Mon, Oct 30, 2017 at 8:15 AM, Nathan Froyd  wrote:
> > Hi all,
> >
> > Bug 1163171 has been merged to mozilla-central, moving our Android
> > builds over to using clang instead of GCC.  Google has indicated that
> > the next major NDK release will render GCC unsupported (no bugfixes
> > will be provided), and that it will be removed entirely in the near
> > future.  Switching to clang now makes future NDK upgrades easier,
> > provides for better integration with the Android development tools,
> > and brings improvements in performance/code size/standards support.
> >
> > For non-Android platforms, the good news here is that compiling Fennec
> > with clang was the last major blocker for turning on C++14 support.
> > Using clang on Android also opens up the possibility of running our
> > static analyses on Android.
> >
> > If you run into issues, please file bugs blocking bug 1163171.
> >
> > Thanks,
> > -Nathan
> > ___
> > mobile-firefox-dev mailing list
> > mobile-firefox-...@mozilla.org
> > https://mail.mozilla.org/listinfo/mobile-firefox-dev
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Visual Studio 2017 coming soon

2017-10-29 Thread Jim Blandy
How will this affect the matrix of specific C++ features we can use?
https://developer.mozilla.org/en-US/docs/Using_CXX_in_Mozilla_code

(At the moment I'm dying for generic lambdas, which are C++14. I'd been
using std::function as a workaround, but I also need control over the
allocation policy, which std::function no longer offers.)


On Wed, Oct 25, 2017 at 2:48 PM, David Major  wrote:

> I'm planning to move production Windows builds to VS2017 (15.4.1) in bug
> 1408789.
>
> VS2017 has optimizer improvements that produce faster code. I've seen 3-6%
> improvement on Speedometer. There is also increased support for C++14 and
> C++17 language features:
> https://docs.microsoft.com/en-us/cpp/visual-cpp-language-conformance
>
> These days we tend not to support older VS for too long, so after some
> transition period you can probably expect that VS2017 will be required to
> build locally, ifdefs can be removed, etc. VS2017 Community Edition is a
> free download and it can coexist with previous compilers. Installation
> instructions are at:
> https://developer.mozilla.org/en-US/docs/Mozilla/Developer_
> guide/Build_Instructions/Windows_Prerequisites#Visual_Studio_2017
>
> If you have concerns, please talk to me or visit the bug. Thanks!
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Fennec now builds with clang instead of gcc

2017-10-29 Thread Makoto Kato
Great!  BTW, is minimal requirement of NDK version changed to NDK r15c
that is used on taskcluster job?  Or does it keeps NDK r11c?

-- Makoto


On Mon, Oct 30, 2017 at 8:15 AM, Nathan Froyd  wrote:
> Hi all,
>
> Bug 1163171 has been merged to mozilla-central, moving our Android
> builds over to using clang instead of GCC.  Google has indicated that
> the next major NDK release will render GCC unsupported (no bugfixes
> will be provided), and that it will be removed entirely in the near
> future.  Switching to clang now makes future NDK upgrades easier,
> provides for better integration with the Android development tools,
> and brings improvements in performance/code size/standards support.
>
> For non-Android platforms, the good news here is that compiling Fennec
> with clang was the last major blocker for turning on C++14 support.
> Using clang on Android also opens up the possibility of running our
> static analyses on Android.
>
> If you run into issues, please file bugs blocking bug 1163171.
>
> Thanks,
> -Nathan
> ___
> mobile-firefox-dev mailing list
> mobile-firefox-...@mozilla.org
> https://mail.mozilla.org/listinfo/mobile-firefox-dev
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Fennec now builds with clang instead of gcc

2017-10-29 Thread Nicholas Nethercote
Excellent news! Thank you for completing this. Updating toolchains isn't
glamorous work but it is important and helps everybody.

Nick

On Mon, Oct 30, 2017 at 10:15 AM, Nathan Froyd  wrote:

> Hi all,
>
> Bug 1163171 has been merged to mozilla-central, moving our Android
> builds over to using clang instead of GCC.  Google has indicated that
> the next major NDK release will render GCC unsupported (no bugfixes
> will be provided), and that it will be removed entirely in the near
> future.  Switching to clang now makes future NDK upgrades easier,
> provides for better integration with the Android development tools,
> and brings improvements in performance/code size/standards support.
>
> For non-Android platforms, the good news here is that compiling Fennec
> with clang was the last major blocker for turning on C++14 support.
> Using clang on Android also opens up the possibility of running our
> static analyses on Android.
>
> If you run into issues, please file bugs blocking bug 1163171.
>
> Thanks,
> -Nathan
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Visual Studio 2017 coming soon

2017-10-29 Thread David Major
This has reached mozilla-central and nightlies are now being built with
VS2017.

The clang-cl builds (which still rely on a VS package for link.exe, among
other things) remain on VS2015 while I work out some issues in clang-cl's
path detection. All other Windows jobs have moved to VS2017.

While I'm here, I want to give a shout out to everyone who helped with the
move to Taskcluster and in-tree job definitions. In previous compiler
upgrades I had to beg for a lot of handholding from busy releng folks. This
time was an absolute piece of cake. Everything was self-explanatory,
self-service, and easily testable on Try. Thank you!


On Wed, Oct 25, 2017 at 5:48 PM, David Major  wrote:

> I'm planning to move production Windows builds to VS2017 (15.4.1) in bug
> 1408789.
>
> VS2017 has optimizer improvements that produce faster code. I've seen 3-6%
> improvement on Speedometer. There is also increased support for C++14 and
> C++17 language features: https://docs.microsoft.com/en-
> us/cpp/visual-cpp-language-conformance
>
> These days we tend not to support older VS for too long, so after some
> transition period you can probably expect that VS2017 will be required to
> build locally, ifdefs can be removed, etc. VS2017 Community Edition is a
> free download and it can coexist with previous compilers. Installation
> instructions are at: https://developer.mozilla.org/
> en-US/docs/Mozilla/Developer_guide/Build_Instructions/
> Windows_Prerequisites#Visual_Studio_2017
>
> If you have concerns, please talk to me or visit the bug. Thanks!
>
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Fennec now builds with clang instead of gcc

2017-10-29 Thread Nathan Froyd
On Sun, Oct 29, 2017 at 7:37 PM, Kris Maglione  wrote:
> On Sun, Oct 29, 2017 at 07:15:50PM -0400, Nathan Froyd wrote:
>>
>> For non-Android platforms, the good news here is that compiling Fennec
>> with clang was the last major blocker for turning on C++14 support.
>
> Do we have a timeline for when we'll be able to start using those features,
> or a summary of which features we'll be able to start using? There are a few
> that I've been waiting on for a long time...

Which features are you particularly eager to use?  I'm on the fence as
to whether C++14 support should be turned on in 58 or wait until 59.

The canonical feature vs. compiler matrix lives at:

https://developer.mozilla.org/en-US/docs/Using_CXX_in_Mozilla_code

Once C++14 support gets turned on, we'll be able to use everything
supported by GCC 4.9 in cross-platform code.  Upgrading our Linux
requirements to GCC 6 or better (and MSVC to 2017) would be required
before getting to use shinier features.

Thanks,
-Nathan
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Fennec now builds with clang instead of gcc

2017-10-29 Thread Kris Maglione

On Sun, Oct 29, 2017 at 07:15:50PM -0400, Nathan Froyd wrote:

For non-Android platforms, the good news here is that compiling Fennec
with clang was the last major blocker for turning on C++14 support.


Do we have a timeline for when we'll be able to start using those 
features, or a summary of which features we'll be able to start using? 
There are a few that I've been waiting on for a long time...

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Fennec now builds with clang instead of gcc

2017-10-29 Thread Nathan Froyd
Hi all,

Bug 1163171 has been merged to mozilla-central, moving our Android
builds over to using clang instead of GCC.  Google has indicated that
the next major NDK release will render GCC unsupported (no bugfixes
will be provided), and that it will be removed entirely in the near
future.  Switching to clang now makes future NDK upgrades easier,
provides for better integration with the Android development tools,
and brings improvements in performance/code size/standards support.

For non-Android platforms, the good news here is that compiling Fennec
with clang was the last major blocker for turning on C++14 support.
Using clang on Android also opens up the possibility of running our
static analyses on Android.

If you run into issues, please file bugs blocking bug 1163171.

Thanks,
-Nathan
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform