Date: Wed, 8 Sep 2021 14:32:16 -0600 From: Warner Losh <imp@bsdimp.com> To: David Chisnall <theraven@freebsd.org> Cc: Gary Jennejohn <gljennjohn@gmail.com>, Stefan Esser <se@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: -CURRENT compilation time Message-ID: <CANCZdfrMDoP8W3HbJ-_p4sHNwYDCadhV9HSy-qzLRSeBwxvrwA@mail.gmail.com> In-Reply-To: <746cf2d1-0192-a55d-c3f8-ac7fc7120b47@FreeBSD.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000df39f105cb81c784 Content-Type: text/plain; charset="UTF-8" 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 > --000000000000df39f105cb81c784--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrMDoP8W3HbJ-_p4sHNwYDCadhV9HSy-qzLRSeBwxvrwA>