From nobody Wed Sep 08 23:10:27 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7E85617C75D5 for ; Wed, 8 Sep 2021 23:10:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H4dCp2xWcz3NGF for ; Wed, 8 Sep 2021 23:10:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vk1-xa2e.google.com with SMTP id g18so18161vkq.8 for ; Wed, 08 Sep 2021 16:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6R+US1J5vdq2sl50WIq+m/8rNobl1+SvKVrVArsMtj4=; b=hPoeNCDcZH1Prd4srEccIXTwGZ6m9wzzBQn1Ixp5OSk2aSUH4fkgf7U9+MEp4MwNPf XP2w8e2IqgS8vX6Vogj5gEsMaQPhr0CZFMV+YQAGWcFJmaLIu2G7nsCBrJSpjJojweg1 ZfVjJHucX3Pi/XLRjciwwdaxFlGNLI0ptbnblZvEAtX7cXYvC0L7Be6JkrC6MmfA6VFw gp+c34fXvnLvRW6qQk2IJKXlPnfXlQiXZ2GtTMBp9+ZqIlBCpWfTGF4DTCMP9GX7fDb/ Q5ly6BCKGJiQnrSSFnrEZ5+mzNgIOZYb+SlKCb7XpQSJurn/2Vv8E6J1B4prDwlGRUqS C0yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6R+US1J5vdq2sl50WIq+m/8rNobl1+SvKVrVArsMtj4=; b=TcY6NUqbRtZ1xkbk8Kzy//Q4mwUANqeGm4P7uliZ6FdFtpjRIGf4kHebm31+rwOxmP 8sgzzUnyqe2P4QyEALPDRanaseNx0QifzgsfT7xjARqUcM0m22OIQuMgKugBidxRwp6j CqDLAFP8glpK8PZU4Cc7z+ElAICGOkvHcqGlELS3dlZcLyGJYXfn1HK3T6jJMb+XTtU7 gY0+kFKku8y0a7Q2zBSJxsWexc+gsVxTvyv17cCKz+sTnoz7EEKlRwekOguRl1+u5ijO 9Ee4zUI/T71gZHLms4sdKTCJEihuo+DHqmIXAlD+RsuWNWs7aEIFkuaBN86B6y+X/f6V Zj+w== X-Gm-Message-State: AOAM533of2Bjo/WhIOhzJVLXH9MFYDozinq1G+dhWjIwBQWFlZh86TTY P8EpJA2RUxgRg3qK0e9IcmmOYcYjSWzWkB8VpBmDfqNs6cw= X-Google-Smtp-Source: ABdhPJy9QBEbnMoJDULqbG3+hJYgH4ZP0SKYa+6fuHnbT9UfKP/e9YDpwo5i3M1B3vcmZWA2yg4crQjjdz+IbSSzpG8= X-Received: by 2002:a05:6122:d95:: with SMTP id bc21mr295889vkb.23.1631142639669; Wed, 08 Sep 2021 16:10:39 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <2cfb912a-618b-9f06-9cef-d2fe1d78fe97@FreeBSD.org> <20210908105236.1abb8f9a@ernst.home> <746cf2d1-0192-a55d-c3f8-ac7fc7120b47@FreeBSD.org> <20210909080446.d223e9e16b90b5600f962757@dec.sakura.ne.jp> In-Reply-To: <20210909080446.d223e9e16b90b5600f962757@dec.sakura.ne.jp> From: Warner Losh Date: Wed, 8 Sep 2021 17:10:27 -0600 Message-ID: Subject: Re: -CURRENT compilation time To: Tomoaki AOKI Cc: FreeBSD Current Content-Type: multipart/alternative; boundary="0000000000009de6fc05cb83fd8d" X-Rspamd-Queue-Id: 4H4dCp2xWcz3NGF X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --0000000000009de6fc05cb83fd8d Content-Type: text/plain; charset="UTF-8" On Wed, Sep 8, 2021, 5:06 PM Tomoaki AOKI wrote: > On Wed, 8 Sep 2021 14:32:16 -0600 > Warner Losh wrote: > > > On Wed, Sep 8, 2021, 6:33 AM David Chisnall > 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 > > --0000000000009de6fc05cb83fd8d--