Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 10, 2015
  1. @nico
  2. @nico

    Simplify. No behavior change.

    nico authored
Commits on Mar 9, 2015
  1. @nico

    Make diagnostics colored with new gccs (4.9+) too.

    nico authored
    Both clang and gcc understand -fdiagnostics-color, so use that flag name.
    (This will disable colored diagnostics for clangs older than LLVM 3.3,
    but that is several years old by now.)
Commits on Dec 3, 2014
  1. @nico
Commits on Nov 22, 2014
  1. @nico
  2. @nico

    Merge pull request #862 from nico/browse

    nico authored
    Make browse detection consistent with other platform checks.
  3. @nico
  4. @nico

    Stop linking pthread.

    nico authored
    It was only needed by gtest, which is no longer used.
    (Intesting note: I checked when the -lpthread flag was added, and it's
    been around since the first revision of build.ninja, which used to be
    checked in before configure.py existed. Back then, it looks like '@' was
    used to dereference built-in variables, and build outputs were also
    prefixed by '@'!).
Commits on Nov 21, 2014
  1. @nico
  2. @nico
Commits on Nov 14, 2014
  1. @nico

    Merge pull request #842 from nico/solaris

    nico authored
    Fix building on Solaris.
  2. @nico

    Make sure configure.py and ninja.cc always agree on if -t browse is i…

    nico authored
    …ncluded.
    
    No behavior change on most platforms. On solaris, -t browse was compiled in
    in ninja.cc but browse.cc wasn't compiled in, which probably means that building
    on Solaris didn't work. It might be better now.
    
    This also makes browse.cc automatically not included in bootstrap builds;
    previously this was done manually through the NINJA_BOOTSTRAP check.
  3. @nico

    Remove unused variables.

    nico authored
Commits on Nov 1, 2014
  1. @nico

    Fix building on Solaris.

    nico authored
    "SunOS" and "Solaris" are the same thing these days, so make them go
    down the same code paths. In particular, the browse feature was omitted
    on solaris but not sunos5, causing trouble for some folks (see #838).
Commits on Sep 19, 2014
  1. @nico

    Make auto-reconfiguring work if CFLAGS contains more than one flag.

    nico authored
    When using an open-source clang on OS X, one has to pass an isysroot
    flag so that it can find system headers (stdio.h), like so:
    
      CXX=path/to/clang++ CFLAGS="-isysroot $(xcrun -show-sdk-path)" ./configure.py
    
    Previously, configure.py wouldn't quote envvars containing spaces, so
    it'd rerun this as
    
      CXX=path/to/clang++ CFLAGS=-isysroot /sysroot/path ./configure.py
    
    which would then die because /sysroot/path wasn't excecutable.
Commits on Sep 18, 2014
  1. @nico

    Use a small, standalone testing framework instead of googletest.

    nico authored
    Ninja currently uses googletest for testing. That makes building
    ninja_test somewhat annoying since it requires that one passes
    --with-gtest PATH to configure. It turns out just implementing the bits
    of googletest that ninja uses needs about the same amount of code than
    making the --with-gtest flag in configure.py work and making googletest
    print test results in a way we want (!)
    
    In addition to making configuration simpler, this also makes compiling
    tests much faster: On my system, touching src/build_test.cc (the slowest
    file to build in ninja) and rebuilding ninja_tests is twice as fast than
    without this patch. Building all is noticeably faster too: 5.6s with
    this patch, 9.1s without this patch (38% faster).
    
    The most noticeable things missing: EXPECT_* and ASSERT_* don't support
    streaming notes to them with operator<<, and for failing tests the lhs
    and rhs are not printed. That's so that this header does not have to
    include sstream, which slows down building ninja_test almost 20%.
    If this turns out to be annoying, we can maybe add it.
Commits on Jun 15, 2014
  1. @nico
Commits on Apr 17, 2014
  1. @nico
Commits on Apr 16, 2014
  1. @nico
Commits on Oct 27, 2013
  1. @nico
Commits on Apr 9, 2013
  1. @nico
  2. @nico

    Make gtest output more silent, ninja issue #528.

    nico authored
    This is just a proof-of-concept. The terminal printing logic should be
    extracted from src/build.cc and then reused here.
Commits on Aug 16, 2012
  1. @nico
Commits on Jun 15, 2012
  1. @nico

    Add a hash collision benchmark.

    nico authored
Commits on Jun 5, 2012
  1. @nico
Commits on Jun 3, 2012
  1. @nico

    add canon_perftest

    nico authored
Commits on May 9, 2012
  1. @nico
Commits on May 8, 2012
  1. @nico

    Add a BuildLog loading perftest.

    nico authored
Commits on May 5, 2012
  1. @nico

    Produce colored diagnostics when building ninja with clang.

    nico authored
    This can be disabled by having -fno-color-diagnostics in CFLAGS,
    or setting TERM to dumb.
Commits on May 4, 2012
  1. @nico
  2. @nico

    Let configure.py remember its environment for rerunning.

    nico authored
    Without this, CXX is lost when ninja decides that it's time to
    regenerate build.ninja, which makes performance tweaking surprising.
Commits on May 1, 2012
  1. @nico

    ninja_syntax.build() returns a list, not a single string.

    nico authored
    Fixes 'multiple rules' warnings on mac/linux.
Commits on Apr 30, 2012
  1. @nico
  2. @nico
  3. @nico
Something went wrong with that request. Please try again.