public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Gilbert <floppym@gentoo.org>
To: Gentoo Dev <gentoo-dev@lists.gentoo.org>
Cc: Christoph Junghans <ottxor@gentoo.org>,
	 Chromium Herd <chromium@gentoo.org>,
	kde@gentoo.org
Subject: [gentoo-dev] Usage of dev-utils/ninja in ebuilds
Date: Sat, 25 May 2013 14:48:30 -0400	[thread overview]
Message-ID: <51A1077E.1030607@gentoo.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

For those unaware, dev-util/ninja is a make-replacement created by one
of the Chromium guys at Google. Its focus is on making incremental
builds of large software faster.

In the latest chromium ebuild (chromium-29.0.1516.3), we are using ninja
instead of make. ninja auto-detects the number of jobs to run by
default; in the chromium ebuild, we override this by passing -j
$(makeopts_jobs) instead.

Another place ninja is used cmake-utils.eclass, where it may be used
optionally in place of make depending on the CMAKE_MAKEFILE_GENERATOR
variable. The ninja_src_make function in cmake-utils.eclass calls ninja
with ${MAKEOPTS} or not depending on the value of CMAKE_VERBOSE. This is
a bit inconsistent and could cause problems because ninja only accepts a
limited subset of GNU make's command line options.

I'm wondering if we should create a more global function for calling
ninja in a consistent way. Maybe we should introduce a NINJAOPTS
variable for users to set in make.conf. Should we create a new eclass
for this, or just stick it in eutils?

Thoughts?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

             reply	other threads:[~2013-05-25 18:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25 18:48 Mike Gilbert [this message]
2013-05-25 19:17 ` [gentoo-dev] Usage of dev-utils/ninja in ebuilds Tom Wijsman
2013-05-25 19:45   ` Mike Gilbert
2013-05-26  3:01     ` "Paweł Hajdan, Jr."
2013-05-25 21:09   ` Luca Barbato
2013-05-26  1:53 ` [gentoo-dev] " Ryan Hill
2013-05-26  1:55   ` Mike Gilbert
2013-05-26  2:00   ` Alex Xu
2013-05-26  4:23     ` Ryan Hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51A1077E.1030607@gentoo.org \
    --to=floppym@gentoo.org \
    --cc=chromium@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=kde@gentoo.org \
    --cc=ottxor@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox