Brad King [Wed, 3 Feb 2016 18:20:00 +0000 (13:20 -0500)]
Expose more details in FileReader::ReadFile signature
Return a status so callers can distinguish a missing file from an empty
file. This allows our VirtualFileSystem test infrastructure to report
as missing any file for which it has no entry.
Brad King [Wed, 3 Feb 2016 18:18:37 +0000 (13:18 -0500)]
Factor a `FileReader` base class out of `DiskInterface`
Some clients will need only the ability to read files, so provide this
as a more narrow interface than the full disk interface.
Brad King [Tue, 2 Feb 2016 14:34:53 +0000 (09:34 -0500)]
perftest: fix compilation after dupe_edge_should_err change
Fix some ManifestParser constructor calls missed by commit
56bab441b7
(dupe_edge_should_err from bool to enum, 2016-01-27).
Nico Weber [Fri, 29 Jan 2016 03:07:12 +0000 (22:07 -0500)]
Merge pull request #1096 from sgraham/dupe-edge-action
dupe_edge_should_err from bool to enum
Nico Weber [Fri, 29 Jan 2016 03:01:22 +0000 (22:01 -0500)]
Merge pull request #1098 from shinh/keepdep
Add -d keepdepfile to preserve depfiles
Shinichiro Hamaji [Thu, 28 Jan 2016 09:16:07 +0000 (18:16 +0900)]
Add -d keepdepfile to preserve depfiles
This is useful when you are developing a tool which generates
GCC-style depfiles.
Scott Graham [Wed, 27 Jan 2016 19:10:34 +0000 (11:10 -0800)]
dupe_edge_should_err from bool to enum
Nico Weber [Wed, 27 Jan 2016 15:17:31 +0000 (10:17 -0500)]
Merge pull request #1095 from sgraham/dupbuild-err
Make dupbuild=err work in subninja
Scott Graham [Wed, 27 Jan 2016 03:44:27 +0000 (19:44 -0800)]
Make dupbuild=err work in subninja
Nico Weber [Wed, 27 Jan 2016 02:18:11 +0000 (21:18 -0500)]
Merge pull request #1094 from sphawk/master
fix for localized version of cl.exe
Nico Weber [Wed, 27 Jan 2016 02:15:23 +0000 (21:15 -0500)]
Merge pull request #1085 from tetsuok/remove-unnecessary-std
Remove unnecessary `std::`
sphawk [Mon, 25 Jan 2016 13:38:08 +0000 (22:38 +0900)]
fix for localized version of cl.exe
Evan Martin [Sun, 10 Jan 2016 17:30:44 +0000 (09:30 -0800)]
Merge pull request #1086 from tetsuok/use-container-based-infra-for-ci
Use container-based infrastructure for travis-ci.
Tetsuo Kiso [Sun, 10 Jan 2016 13:35:45 +0000 (05:35 -0800)]
Use container-based infrastructure for travis-ci.
To start up faster.
Tetsuo Kiso [Sun, 10 Jan 2016 13:23:35 +0000 (05:23 -0800)]
Remove unnecessary `std::`
Nico Weber [Tue, 29 Dec 2015 15:08:42 +0000 (10:08 -0500)]
Merge pull request #1073 from ninja-build/manual-font
use the default font size for manual headings
Nico Weber [Tue, 29 Dec 2015 15:08:23 +0000 (10:08 -0500)]
Merge pull request #1074 from ninja-build/manual-command
add a section to the manual discussion the command= variable
Nico Weber [Tue, 29 Dec 2015 15:03:08 +0000 (10:03 -0500)]
Merge pull request #1082 from nicolasdespres/zshcomp-intermediary-targets
Teach zsh to complete intermediary targets.
Nicolas Despres [Thu, 24 Dec 2015 15:47:33 +0000 (16:47 +0100)]
Teach zsh to complete intermediary targets.
Bash completion script uses "-t targets all" to list the target which
is faster than "-t targets" and reports intermediary targets
(see the manual entry for the 'targets' tool).
See commit
fc135c45.
Evan Martin [Wed, 16 Dec 2015 16:44:23 +0000 (08:44 -0800)]
add a section to the manual discussing the command= variable
This includes a mention of using cmd /c on Windows.
This would have helped on issue #1070 for example.
Evan Martin [Wed, 16 Dec 2015 16:48:59 +0000 (08:48 -0800)]
use the default font size for manual headings
The third-level subsection headings were almost indistinguishable
from the second-level ones. Fix this by just using the default
styling.
Evan Martin [Wed, 9 Dec 2015 22:48:14 +0000 (14:48 -0800)]
Merge pull request #1069 from nicolasdespres/dry_manifest_regen
Do not attempt to rebuild infinitely in dry-run mode.
Nicolas Despres [Wed, 9 Dec 2015 22:18:18 +0000 (23:18 +0100)]
Do not attempt to rebuild infinitely in dry-run mode.
Evan Martin [Sun, 6 Dec 2015 19:17:55 +0000 (11:17 -0800)]
Merge pull request #1042 from avallee/master
Fix wrapping file paths in Writer.comment
Evan Martin [Sun, 6 Dec 2015 19:17:17 +0000 (11:17 -0800)]
Merge pull request #1062 from tfarina/bindings-typedef
make use of Bindings typedef
Evan Martin [Sun, 6 Dec 2015 19:16:42 +0000 (11:16 -0800)]
Merge pull request #1063 from ptzz/master
Fix typo
Evan Martin [Sun, 6 Dec 2015 19:16:26 +0000 (11:16 -0800)]
Merge pull request #1064 from NiklasRosenstein/1043-msvc_deps_prefix-per-rule
add "msvc_deps_prefix" to Rule::IsReservedBinding()
Niklas Rosenstein [Sun, 6 Dec 2015 15:14:33 +0000 (16:14 +0100)]
add "msvc_deps_prefix" to Rule::IsReservedBinding()
fixes the error about an unexpected variable for a rule that
declares the msvc_deps_prefix. The manual suggests that this
should work since Ninja 1.5
(https://ninja-build.org/manual.html#ref_rule).
Closes #1043
ptzz [Sun, 6 Dec 2015 01:23:49 +0000 (02:23 +0100)]
Fix typo
Thiago Farina [Fri, 4 Dec 2015 22:31:19 +0000 (20:31 -0200)]
make use of Bindings typedef
Looks like we declared this typedef but never used it.
It seems we just forgot to use it so this patch makes uses of it now.
Otherwise we could just delete it.
Alex Vallée [Fri, 27 Nov 2015 21:09:34 +0000 (16:09 -0500)]
Disable long word wrapping entirely in comments.
As pointed out by nico, we should unconditionally disable breaking of
long words in comments. It is unlikely long words that are in comments
should be split (like pathnames).
Nico Weber [Thu, 19 Nov 2015 20:41:32 +0000 (12:41 -0800)]
prefer https in readme
Nico Weber [Wed, 18 Nov 2015 05:34:10 +0000 (21:34 -0800)]
Merge pull request #1053 from ninja-build/configure
Minor tweaks to the configure script
Evan Martin [Tue, 17 Nov 2015 22:28:08 +0000 (14:28 -0800)]
when building with cwd = source root, use relative paths
The pull request that introduced building from a directory other
than the source dir, https://github.com/ninja-build/ninja/pull/979,
made it so all source paths are effectively absolute paths. This
change restores the old behavior in the case when you are building
in the source. See the comments there.
Evan Martin [Tue, 17 Nov 2015 22:26:18 +0000 (14:26 -0800)]
rename the build-file variable $sourcedir to $root
Confusingly, $sourcedir is the path to the root of the repository,
*not* the path to the src/ directory.
Evan Martin [Tue, 17 Nov 2015 22:23:13 +0000 (14:23 -0800)]
put warning flags together
Nico Weber [Tue, 17 Nov 2015 22:20:12 +0000 (14:20 -0800)]
Merge pull request #1052 from ninja-build/docs
Minor doc fixes
Evan Martin [Tue, 17 Nov 2015 22:13:44 +0000 (14:13 -0800)]
drop a [horizontal] definition table
The two columns of the table run together, making it hard to read.
Evan Martin [Tue, 17 Nov 2015 22:04:50 +0000 (14:04 -0800)]
improve docs generation, including PDF output
- Fix the manual build rules (missing the .xsl as an input).
- Add a README describing how the docs build works.
- Add rules that generate PDF, just 'cause we can.
Evan Martin [Tue, 17 Nov 2015 22:02:43 +0000 (14:02 -0800)]
provide a better title for the manual
In particular, this helps web search engines index it.
Nico Weber [Thu, 12 Nov 2015 05:46:33 +0000 (21:46 -0800)]
Merge pull request #1047 from pykello/master
Speed-up bash target auto-complete.
Nico Weber [Thu, 12 Nov 2015 05:46:19 +0000 (21:46 -0800)]
Merge pull request #1046 from zed0/master
Speed up zsh target completion
Alex Vallee [Thu, 12 Nov 2015 03:48:39 +0000 (22:48 -0500)]
Fix indent in pull request #1042.
Evan Martin [Thu, 12 Nov 2015 01:19:00 +0000 (17:19 -0800)]
Merge pull request #1007 from mikesep/aix
Support for AIX
Nico Weber [Thu, 12 Nov 2015 01:13:30 +0000 (17:13 -0800)]
Merge pull request #999 from colincross/dumbstatus
Print status when edge finishes on dumb terminals
Nico Weber [Thu, 12 Nov 2015 00:51:29 +0000 (16:51 -0800)]
Merge pull request #964 from nicolasdespres/sighup
Cleanup build on SIGHUP.
Nico Weber [Thu, 12 Nov 2015 00:34:38 +0000 (16:34 -0800)]
Merge pull request #763 from drbo/master
Allow paths with international characters in depfiles
Nico Weber [Wed, 11 Nov 2015 21:54:14 +0000 (13:54 -0800)]
Try to fix #685
Evan Martin [Wed, 11 Nov 2015 21:34:13 +0000 (13:34 -0800)]
drop more references to github/martine
Nico Weber [Wed, 11 Nov 2015 21:27:16 +0000 (13:27 -0800)]
Update link to point to ninja-build.org
Nico Weber [Wed, 11 Nov 2015 19:54:07 +0000 (11:54 -0800)]
Merge pull request #1049 from nico/update-links
Make links point to org page
Nico Weber [Wed, 11 Nov 2015 19:53:15 +0000 (11:53 -0800)]
Make links point to org page
Nico Weber [Wed, 11 Nov 2015 19:36:16 +0000 (11:36 -0800)]
test commit
Hadi Moshayedi [Sat, 31 Oct 2015 10:13:33 +0000 (06:13 -0400)]
Speed-up bash target auto-complete.
These speed-ups include:
* Let compgen do the command substitution. Similar to
https://lists.gnu.org/archive/html/bug-bash/2012-03/msg00115.html
* Use "cut" instead of "awk" for separating fields.
Ben Falconer [Fri, 30 Oct 2015 14:43:32 +0000 (14:43 +0000)]
Speed up zsh target completion
Alex Vallée [Fri, 23 Oct 2015 20:36:28 +0000 (16:36 -0400)]
Fix wrapping file paths in Writer.comment
Long file names, especially with hyphens will get incorrectly wrapped by
the comment method. Pass has_path=True to prevent this type of wrapping.
This is mainly so that longer path names can show up in comments on
their on line without breaking them up.
Mike Seplowitz [Wed, 21 Oct 2015 22:37:50 +0000 (18:37 -0400)]
Separate bootstrapped build from final build
AIX does not support rebuilding ninja in-place from the bootstrapped ninja.
Nico Weber [Thu, 22 Oct 2015 03:07:02 +0000 (20:07 -0700)]
Merge pull request #1015 from moroten/docs-relpath
Describe why to use relative paths
Nico Weber [Thu, 22 Oct 2015 01:49:56 +0000 (18:49 -0700)]
Merge pull request #1040 from peter1000/patch-1
Fixes typo
Nico Weber [Wed, 21 Oct 2015 23:35:03 +0000 (16:35 -0700)]
Merge pull request #1029 from nicolasdespres/fix-doc-typo
Fix typo.
peter1000 [Mon, 19 Oct 2015 20:44:30 +0000 (18:44 -0200)]
Fixes typo
Nicolas Despres [Thu, 24 Sep 2015 18:02:43 +0000 (20:02 +0200)]
Fix typo.
Nicolas Despres [Wed, 29 Apr 2015 07:33:37 +0000 (09:33 +0200)]
Cleanup build on SIGHUP.
SIGHUP is sent when the connection hang up (i.e. when the terminal
window is closed or the ssh connection is closed).
Nico Weber [Mon, 7 Sep 2015 23:52:25 +0000 (16:52 -0700)]
Merge pull request #1014 from moroten/optimize-stringpiece
Optimize StringPiece hash map
Nico Weber [Mon, 7 Sep 2015 21:35:21 +0000 (14:35 -0700)]
Merge pull request #1018 from nico/spell
Merge LLVM r242069, make spell checking allocate less memory.
Nico Weber [Mon, 7 Sep 2015 21:26:19 +0000 (14:26 -0700)]
Merge LLVM r242069, make spell checking allocate less memory.
Fredrik Medley [Fri, 12 Jun 2015 21:59:12 +0000 (23:59 +0200)]
Optimize StringPiece hash map
Replace strncmp with memcmp to improve performance.
Signed-off-by: Fredrik Medley <fredrik.medley@gmail.com>
Fredrik Medley [Thu, 3 Sep 2015 19:27:19 +0000 (21:27 +0200)]
Describe why to use relative paths
Ninja does resolve relative paths and file system links in paths.
Therefore, such paths pointing to the same file will not match and may
lead to an invalid dependency graph.
Signed-off-by: Fredrik Medley <fredrik.medley@gmail.com>
Nico Weber [Thu, 27 Aug 2015 06:34:48 +0000 (23:34 -0700)]
Merge pull request #1009 from sgraham/fix-null.o
Don't output null.o during configure
Scott Graham [Thu, 27 Aug 2015 02:51:15 +0000 (19:51 -0700)]
Don't output null.o during configure
Mike Seplowitz [Tue, 13 Jan 2015 01:53:14 +0000 (20:53 -0500)]
Fix getopt for AIX
AIX supplies getopt but not getopt_long.
We can't use the embedded getopt implementation, since the constness of its
arguments doesn't match the AIX system routine.
Mike Seplowitz [Tue, 13 Jan 2015 01:48:07 +0000 (20:48 -0500)]
Implement GetLoadAverage on AIX using libperfstat
Mike Seplowitz [Tue, 13 Jan 2015 00:13:39 +0000 (19:13 -0500)]
Fix AIX compilation error related to printf macros
On AIX, inttypes.h gets indirectly included by build_log.h.
It's easiest just to ask for the printf format macros right away.
Mike Seplowitz [Tue, 13 Jan 2015 01:47:55 +0000 (20:47 -0500)]
Start AIX port
Mike Seplowitz [Mon, 12 Jan 2015 22:36:37 +0000 (17:36 -0500)]
Strip tabs from od's output
/bin/od on Solaris and AIX both generate tabs.
Nico Weber [Mon, 10 Aug 2015 15:35:33 +0000 (08:35 -0700)]
Merge pull request #1003 from sgraham/2015-compile
Fix compile on VS2015
Scott Graham [Mon, 10 Aug 2015 04:27:39 +0000 (21:27 -0700)]
Remove accidental changes
Scott Graham [Mon, 10 Aug 2015 04:25:09 +0000 (21:25 -0700)]
Some mucking with std:: for set_terminate and terminate_handler
Scott Graham [Mon, 10 Aug 2015 04:02:23 +0000 (21:02 -0700)]
Set _HAS_EXCEPTIONS=0 on MSVC
Nico Weber [Mon, 3 Aug 2015 00:30:44 +0000 (17:30 -0700)]
Merge pull request #998 from LindleyF/stdc-format-macros
Make sure not to re-define __STDC_FORMAT_MACROS.
Lindley French [Fri, 31 Jul 2015 00:33:11 +0000 (17:33 -0700)]
Make sure not to re-define __STDC_FORMAT_MACROS.
Colin Cross [Fri, 31 Jul 2015 00:30:52 +0000 (17:30 -0700)]
Print status when edge finishes on dumb terminals
On smart terminals ninja prints the status line both before
and after running a command, reusing the same line if possible.
On a dumb terminal that doesn't support reusing the line, it
only prints the status before starting the command, but prints
the output of the command when the command finishes, by which
point other commands may have started and printed their status
line. This makes it impossible to determine what command
produced a line of output.
Modify BuildEdgeStarted to only print the status line if the
command is going to lock the console, or if ninja is running
on a smart terminal. Modify BuildEdgeFinished to always
print the status line unless the command locked the console,
in which case the status was already printed and no other
command can have printed any lines.
The end result will be dumb terminal output that much more
closely matches smart terminal output. One disadvantage is
that dumb terminals won't show anything when starting a
command, making it harder to tell what commands are currently
running, but I expect most interactive uses of ninja will use
a smart terminal.
Nico Weber [Thu, 30 Jul 2015 18:21:47 +0000 (11:21 -0700)]
Merge pull request #997 from mikesep/assert-arg-order
Correct order of ASSERT_EQ arguments
Mike Seplowitz [Tue, 21 Jul 2015 22:13:26 +0000 (18:13 -0400)]
Correct order of ASSERT_EQ arguments
The correct order is ASSERT_EQ(expected, actual).
Nico Weber [Fri, 10 Jul 2015 19:24:23 +0000 (12:24 -0700)]
Merge pull request #988 from nico/slashes
win: print right slashes in 'unknown target' message
Nico Weber [Fri, 10 Jul 2015 19:15:00 +0000 (12:15 -0700)]
win: print right slashes in 'unknown target' message
Nico Weber [Sun, 5 Jul 2015 22:53:46 +0000 (15:53 -0700)]
Merge pull request #973 from sgraham/canonicalize-fix
Fix crash in attempting to canonicalize paths longer than _MAX_PATH
Nico Weber [Sun, 5 Jul 2015 22:53:28 +0000 (15:53 -0700)]
Merge pull request #979 from stinb/bootstrap-out-of-source
Bootstrap out of source
Nico Weber [Thu, 2 Jul 2015 00:52:16 +0000 (17:52 -0700)]
fix typos, punctuation, redundant words in HACKING.md
Nico Weber [Wed, 1 Jul 2015 00:00:42 +0000 (17:00 -0700)]
Merge pull request #984 from martine/vcvars
point people at more detailed build docs if they're on Windows
Evan Martin [Tue, 30 Jun 2015 22:26:20 +0000 (15:26 -0700)]
point people at more detailed build docs if they're on Windows
It's a hard balance between "most people want to run configure --bootstrap" and
"here's a massive wall of text of every detail about building". I think the
balance in this change is better than it was before -- most people on Windows
don't want to build their own binary.
Fixes #983.
Nico Weber [Mon, 29 Jun 2015 17:16:35 +0000 (10:16 -0700)]
mark this 1.6.0.git
Jason Haslam [Mon, 22 Jun 2015 22:28:04 +0000 (16:28 -0600)]
Fix bootstrap from a source path containing spaces.
Jason Haslam [Tue, 26 May 2015 22:47:18 +0000 (16:47 -0600)]
Search for generated headers relative to build dir.
Jason Haslam [Tue, 26 May 2015 21:19:28 +0000 (15:19 -0600)]
Allow configure script to bootstrap out of source.
Nico Weber [Mon, 22 Jun 2015 20:44:24 +0000 (13:44 -0700)]
Merge pull request #978 from martine/revert-971-bootstrap-out-of-source
Revert "Bootstrap out of source"
Nico Weber [Mon, 22 Jun 2015 20:35:37 +0000 (13:35 -0700)]
Revert "Bootstrap out of source"
Nico Weber [Fri, 19 Jun 2015 00:34:37 +0000 (17:34 -0700)]
Merge pull request #975 from nico/docs
Document the change from #921 in the manual.
Nico Weber [Fri, 19 Jun 2015 00:22:48 +0000 (17:22 -0700)]
Document the change from #921 in the manual.
Nico Weber [Thu, 18 Jun 2015 23:39:30 +0000 (16:39 -0700)]
Merge pull request #971 from stinb/bootstrap-out-of-source
Bootstrap out of source