Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2021 17:10:27 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: -CURRENT compilation time
Message-ID:  <CANCZdfqknoh8fhhx=UvCpUZbnUCrWRU4VigDZguN3ghO00dLGw@mail.gmail.com>
In-Reply-To: <20210909080446.d223e9e16b90b5600f962757@dec.sakura.ne.jp>
References:  <CAGSa5y0FMwt8g4%2BmqFegvrgBzxJCwupB_RJqb52ZUQy9EFB__Q@mail.gmail.com> <b0dadbd1-3f99-ef8e-0a35-f35d3dab828c@FreeBSD.org> <CAMWY7CCUXJmUT8g1irOUNAxgihhoqpcTcV1nF7MR1NHCVY-%2BEQ@mail.gmail.com> <a16ae438-cef8-d21f-cf5c-891a2a328a26@FreeBSD.org> <e9476190-e098-ae0c-8c40-5445516fa06d@freebsd.org> <2cfb912a-618b-9f06-9cef-d2fe1d78fe97@FreeBSD.org> <20210908105236.1abb8f9a@ernst.home> <746cf2d1-0192-a55d-c3f8-ac7fc7120b47@FreeBSD.org> <CANCZdfrMDoP8W3HbJ-_p4sHNwYDCadhV9HSy-qzLRSeBwxvrwA@mail.gmail.com> <20210909080446.d223e9e16b90b5600f962757@dec.sakura.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009de6fc05cb83fd8d
Content-Type: text/plain; charset="UTF-8"

On Wed, Sep 8, 2021, 5:06 PM Tomoaki AOKI <junchoon@dec.sakura.ne.jp> wrote:

> On Wed, 8 Sep 2021 14:32:16 -0600
> Warner Losh <imp@bsdimp.com> wrote:
>
> > On Wed, Sep 8, 2021, 6:33 AM David Chisnall <theraven@freebsd.org>
> wrote:
> >
> > > On 08/09/2021 11:52, Gary Jennejohn wrote:
> > > > Seems to me that there was an earlier mail about getting CMAKE to
> work
> > > > with FreeBSD builds.  Could be worthwhile to look into getting ninja
> > > > to work also.  But I could understand that there might be push-back,
> > > > since the project prefers to use utilities from the source tree.
> > >
> > > CMake is a build-system generator, Ninja is a build system.  Usually
> the
> > > two are used together: CMake generates Ninja files, Ninja runs the
> > > build.  Ninja is explicitly designed not to be written by hand.
> > >
> > > CMake can also emit other things, including POSIX Makefiles, but the
> > > Ninja build is usually the fastest.
> > >
> > > CMake and Ninja are both in package systems for Windows, macOS, *BSD,
> > > and all Linux distros that I've seen, unlike bmake, so  universally
> easy
> > > to depend on for cross-builds.  Cross compiling with bmake is much
> > > harder harder from anything that isn't FreeBSD.
> > >
> >
> > This may be true. I've never had a problem on mac or linux, but my
> windows
> > experience is thin.
> >
> > I got looking at the problem, btw, to see if ninja was faster than meta
> > mode. Ninja files aren't horrible to generate, but I never got past the
> > early proof of concept phase... it seemed possible to implement a make
> > ninja target... I'd wanted to use this day to day if it was better than
> > meta.
> >
> > Mason, however looked much harder to generate, but I didn't spend a lot
> of
> > time on it. I would think this sort of work would be more of a one shot.
> > Didn't look at cmake at all, but I imagine it would be similar...
> >
> > Warner
> >
> > >
>
> What about devel/samurai, ninja-compatible build tool written in C?
>
> devel/ninja/Makefile has USES= python in it, so it maybe require python
> to run or at least build.
>
> In addition, ports framework can use it instead of ninja.
> See {PORTSDIR}/Mk/Uses/ninja.mk.
>

I'll have to take a look next time I play with this stuff

Warner

-- 
> Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>
>
>

--0000000000009de6fc05cb83fd8d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqknoh8fhhx=UvCpUZbnUCrWRU4VigDZguN3ghO00dLGw>