1. 29 Jan, 2019 1 commit
  2. 10 Jan, 2019 1 commit
  3. 06 Dec, 2018 1 commit
  4. 29 Nov, 2018 1 commit
  5. 15 Nov, 2018 2 commits
  6. 17 Oct, 2018 1 commit
  7. 13 Feb, 2018 2 commits
    • Bruce Dawson's avatar
      Fix autoninja && chrome on failed builds · 46541b49
      Bruce Dawson authored
      A handy usage pattern for autoninja.bat that I was not aware of is to go
      
          autoninja -C out\Default chrome && chrome
      
      This will build chrome and then run it, but only run it if the build
      succeeds. The addition of post_build_ninja_summary.py broke this by
      losing the error code. This change fixes it by using black magic to
      set an error code in the failure case.
      
      Bug: chromium:787983
      Change-Id: Ib87fd1799816e19d56de76e08e0f9688be903d80
      Reviewed-on: https://chromium-review.googlesource.com/916705Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      46541b49
    • Bruce Dawson's avatar
      Update post_build_ninja_summary.py for Linux · e186e50d
      Bruce Dawson authored
      post_build_ninja_summary.py gives a summary of a ninja build. It can be
      run standalone or it can be run automatically by autoninja. This CL
      updates the Python script and the autoninja bash script to make this
      work on Linux. This includes removing a zero-value assert, and ensuring
      that .so files get categorized as such.
      
      Change-Id: I2d59ab129f5ce70117beeb119719f8432bfbab7c
      Reviewed-on: https://chromium-review.googlesource.com/915053Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      e186e50d
  8. 12 Jun, 2017 1 commit
    • Bruce Dawson's avatar
      autoninja - ninja wrapper to make goma easier · ebebd952
      Bruce Dawson authored
      Using goma requires the developer to remember which build directories
      use goma and which don't so that they can pass an appropriate -j number.
      Getting this wrong makes builds slower, either by under utilizing
      resources or by causing a self-inflicted DOS attack. Usage:
      
          autoninja -C out/debug
      
      autoninja looks at the settings for the specified build directory and
      then selects either -j num_cores*20 or no -j flag based on the
      use_goma setting.
      
      You can set the NINJA_CORE_MULTIPLIER variable to change from the
      default 20* multiplier. You can also use NINJA_CORE_ADDITION if you
      want non-goma builds to specify -j with an offset to the number of
      cores, such as this Linux command:
      
          NINJA_CORE_ADDITION=-2 autoninja -C out/release base
      
      This will tell autoninja to pass -j to ninja with num_cores-2 as the
      parameter.
      
      On Windows you can have a ninja.bat file (ahead of ninja on the path)
      such that autoninja will automatically be used. It should contain this:
          @call autoninja.bat %*
      
      Change-Id: I4003e3fc323d1cbab612999c945b5a8dc5bc6655
      Reviewed-on: https://chromium-review.googlesource.com/517662Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Reviewed-by: 's avatarFumitoshi Ukai <ukai@chromium.org>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      ebebd952