From nobody Wed Sep 8 20:32:16 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 0A8E817A1236 for ; Wed, 8 Sep 2021 20:32:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) (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 4H4Yj86cbdz4Xn5 for ; Wed, 8 Sep 2021 20:32:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe33.google.com with SMTP id p14so3208842vsm.2 for ; Wed, 08 Sep 2021 13:32:28 -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=c/IAp0TEC5eUUH3jEdCmkW2Q0s38p7L5AUAONcC0Ey0=; b=OVVywxMrLQdklGQ3FtZMzDXlBapkkqEuL+YNj6vLevY0SlqNxe/c35BvFHXu/Dixg4 0FsdiD6TwW3gnJPfC8H3Nzne6smqISfm0Y3n+zsiOKOVSqM45BreERyTnLiV227MbidJ K6WbZILI013XlUR0st16tCK3gyrLTR7qMGLhc0M9EqDstuFBSQ3UmSkPapUlGssaO95I aTa5R05hKUsyimGzTgxklpOjt+AsJz+DdMljBX59hAE2hFmc8K8BIIaWjGJmkEkj8Mrj IkdZKF+HHQt1aiYMu1swybFlIdlXRPOrobZQgLHhSsIyocH8YFDK3uJF/A4j0wnY/xbb dctQ== 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=c/IAp0TEC5eUUH3jEdCmkW2Q0s38p7L5AUAONcC0Ey0=; b=AGsfVF5voFhLAhen5QxUbuejzDYgfNxYlxGPaQgMBc0HIoCNZehwGw0CaTy/BZFKro 2GSry5z22a/7pe8HHsLngKzGbgk099C2wF+dg4oDMJ7BwMhMZsC93Ei+k+fmyUklwVel avoFyzq98BaPbfU6EouWlfC4mfweGzP/t8BLjaKsS/NPIwdJxTBSDDZABEQcHXa+nofS tttTqvL6I5etaIQlfR4QQklZ4kvX4KoAWb74SVylrJ8la7Ao6/5SfVN/YnXO4optW1jt aONHgfC4KPmyQm4pzroUT+gSHZQSnXTNaF9aglid2te+17jVYeCaVV8QELJm+8VPfsfK 1Qhw== X-Gm-Message-State: AOAM533Eprh2oZeFTXc6KdHhOWLPdmqAKbWteb5F2+NZxTkJkJqe17Lw 97bCBvUA7ywqI/GLTRXFfNUlm0F7KlwOL/RAFO6cqQ== X-Google-Smtp-Source: ABdhPJwRRfqLnyiqYQjpNzaACGpJ0mQSVcrsBWPAtg377EXnotps/Je/Qi9jug6xxeMDowtvWXLNTXTtmpsMSx6M60Y= X-Received: by 2002:a05:6102:2f6:: with SMTP id j22mr3801563vsj.12.1631133148062; Wed, 08 Sep 2021 13:32:28 -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> In-Reply-To: <746cf2d1-0192-a55d-c3f8-ac7fc7120b47@FreeBSD.org> From: Warner Losh Date: Wed, 8 Sep 2021 14:32:16 -0600 Message-ID: Subject: Re: -CURRENT compilation time To: David Chisnall Cc: Gary Jennejohn , Stefan Esser , FreeBSD Current Content-Type: multipart/alternative; boundary="000000000000df39f105cb81c784" X-Rspamd-Queue-Id: 4H4Yj86cbdz4Xn5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000df39f105cb81c784 Content-Type: text/plain; charset="UTF-8" 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 > --000000000000df39f105cb81c784--