Re: D support for the Meson build system

2017-05-08 Thread Matthias Klumpp via Digitalmars-d-announce
Btw, to make Meson and other build systems work really well, we would need this bug fixed in DMDFE: https://issues.dlang.org/show_bug.cgi?id=16746 At the moment, one needs to ninja clean way too often to get a good build.

Re: D support for the Meson build system

2017-05-07 Thread Andrew Godfrey via Digitalmars-d-announce
This looks very nice, but I'm having trouble getting it to work on Windows with DMD. What static linker are you using? DmdDCompiler is defined to need one, but the code in detect_static_linker expects the linker to support the "--version" command-line parameter (or "/?" if the linker is

Re: D support for the Meson build system

2017-04-11 Thread Martin Nowak via Digitalmars-d-announce
On 04/11/2017 09:44 AM, Atila Neves wrote: > That's correct - __traits(getUnitTests) is broken unless compiling all > at once which is extremely unfortunate. I've filed a dmd bug already. > It's been on my TODO list for a while to fix it myself. [Issue 16995 – __traits(getUnittests) doesn't work

Re: D support for the Meson build system

2017-04-11 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 11 April 2017 at 07:34:58 UTC, Russel Winder wrote: On Mon, 2017-04-10 at 12:41 +, Matthias Klumpp via Digitalmars-d- announce wrote: […] I am not buying the necessity of not-splitbuilding for optimizations yet. If that would be the case, how do optimizations work with

Re: D support for the Meson build system

2017-04-11 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2017-04-10 at 12:41 +, Matthias Klumpp via Digitalmars-d- announce wrote: > […] > I am not buying the necessity of not-splitbuilding for  > optimizations yet. If that would be the case, how do  > optimizations work with projects using GCC/Clang where  > splitbuilding is the default

Re: D support for the Meson build system

2017-04-10 Thread Martin Nowak via Digitalmars-d-announce
On 04/10/2017 02:41 PM, Matthias Klumpp wrote: > On Monday, 10 April 2017 at 12:10:41 UTC, Russel Winder wrote: >> On Mon, 2017-04-10 at 08:39 +, Atila Neves via Digitalmars-d- >> announce wrote: >>> […] >>> >>> As far as I know the only build system that does this by default for >>> D is

Re: D support for the Meson build system

2017-04-10 Thread H. S. Teoh via Digitalmars-d-announce
On Mon, Apr 10, 2017 at 05:56:38PM +, Matthias Klumpp via Digitalmars-d-announce wrote: > On Monday, 10 April 2017 at 15:27:25 UTC, Russel Winder wrote: [...] > > My thought for SCons was to delegate the package fetching to Dub as > > a subprocess or write some Python to use the Dub API. I'm

Re: D support for the Meson build system

2017-04-10 Thread Matthias Klumpp via Digitalmars-d-announce
On Monday, 10 April 2017 at 18:11:44 UTC, Russel Winder wrote: [...] I'll look to ensuring my facts are correct, and then find out where to put an issue about this – I am assuming a GitHub repository with issues . Just file one at https://github.com/mesonbuild/meson/issues - it might even

Re: D support for the Meson build system

2017-04-10 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2017-04-10 at 17:56 +, Matthias Klumpp via Digitalmars-d- announce wrote: > […] > > That's pretty cool! One way to do this with Meson is to spawn a  > shell script as custom target, but that obviously sucks. It might  > be worth reporting this as issue upstream, with a concrete  >

Re: D support for the Meson build system

2017-04-10 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2017-04-10 at 17:56 +, Matthias Klumpp via Digitalmars-d- announce wrote: > […] > SCons is considered evil, last time I checked ^^ =>  > https://wiki.debian.org/UpstreamGuide#line867 > (unless it's used right, which seems to be hard) - I have no idea  > though on whether the issues

Re: D support for the Meson build system

2017-04-10 Thread Matthias Klumpp via Digitalmars-d-announce
On Monday, 10 April 2017 at 15:27:25 UTC, Russel Winder wrote: On Mon, 2017-04-10 at 12:41 +, Matthias Klumpp via Digitalmars-d- announce wrote: […]. I am not buying the necessity of not-splitbuilding for optimizations yet. If that would be the case, how do optimizations work with

Re: D support for the Meson build system

2017-04-10 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2017-04-10 at 12:41 +, Matthias Klumpp via Digitalmars-d- announce wrote: > […]. > > I am not buying the necessity of not-splitbuilding for  > optimizations yet. If that would be the case, how do  > optimizations work with projects using GCC/Clang where  > splitbuilding is the

Re: D support for the Meson build system

2017-04-10 Thread Matthias Klumpp via Digitalmars-d-announce
On Monday, 10 April 2017 at 12:10:41 UTC, Russel Winder wrote: On Mon, 2017-04-10 at 08:39 +, Atila Neves via Digitalmars-d- announce wrote: […] As far as I know the only build system that does this by default for D is reggae. I will be adding a new builder to the SCons D tools to do

Re: D support for the Meson build system

2017-04-10 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2017-04-10 at 08:39 +, Atila Neves via Digitalmars-d- announce wrote: > […] > > As far as I know the only build system that does this by default  > for D is reggae. I will be adding a new builder to the SCons D tools to do whole source and per package compiling – to add to the module

Re: D support for the Meson build system

2017-04-10 Thread Atila Neves via Digitalmars-d-announce
On Saturday, 8 April 2017 at 19:11:35 UTC, Martin Nowak wrote: On Friday, 7 April 2017 at 07:57:02 UTC, kinke wrote: So while compiling each file separately in parallel is potentially much much faster, the produced release binary may be slower due to less/no cross-module inlining (e.g., LDC's

Re: D support for the Meson build system

2017-04-09 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: I hope you find this as useful as I do :-) Yes, mature build systems for bigger projects are great. Any opinion about/experience with [Bazel](https://bazel.build/)? https://github.com/mesonbuild/meson/wiki/Comparisons#bazel

Re: D support for the Meson build system

2017-04-08 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 7 April 2017 at 07:57:02 UTC, kinke wrote: So while compiling each file separately in parallel is potentially much much faster, the produced release binary may be slower due to less/no cross-module inlining (e.g., LDC's option is still experimental and known to have issues). In

Re: D support for the Meson build system

2017-04-07 Thread aberba via Digitalmars-d-announce
On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: Hi! Last week I was at this year's GUADEC conference and listened to a very interesting talk on the Meson build system[2] which is designed for very fast builds and as a much more modern replacement for Automake with a simple

Re: D support for the Meson build system

2017-04-07 Thread kinke via Digitalmars-d-announce
On Monday, 22 August 2016 at 11:45:37 UTC, Matthias Klumpp wrote: One important thing about Ninja is that it will perform split-builds by default, so if you change something, only the changed piece needs to be recompiled. I *think* dub can do that too, but for some reason it never does it

Re: D support for the Meson build system

2017-04-07 Thread Russel Winder via Digitalmars-d-announce
On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: […] In the past few days I added support for D (all three major compilers) to the Meson build system, with some great results- […] I hope you find this as useful as I do :-) […] Yes, I do , it's great. Currently though there

Re: D support for the Meson build system

2016-08-22 Thread jkpl via Digitalmars-d-announce
On Monday, 22 August 2016 at 11:45:37 UTC, Matthias Klumpp wrote: On Monday, 22 August 2016 at 01:34:36 UTC, jkpl wrote: On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: for a project like Terminix, dub with LDC builds in 8.6s, while Meson and ninja take only 6s here. Did

Re: D support for the Meson build system

2016-08-22 Thread Matthias Klumpp via Digitalmars-d-announce
On Monday, 22 August 2016 at 01:34:36 UTC, jkpl wrote: On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: for a project like Terminix, dub with LDC builds in 8.6s, while Meson and ninja take only 6s here. Did you try to build with DUB but with WIFI or ethernet interface

Re: D support for the Meson build system

2016-08-21 Thread jkpl via Digitalmars-d-announce
On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote: for a project like Terminix, dub with LDC builds in 8.6s, while Meson and ninja take only 6s here. Did you try to build with DUB but with WIFI or ethernet interface toggled off ?