2116 Commits

Author SHA1 Message Date
Nico Weber
2f127fab68 win: Only drop /showIncludes in bootstrap builds.
Fixes #1103.
2016-02-05 13:28:56 -05:00
Nico Weber
207ff58e44 Merge pull request #1047 from pykello/master
Speed-up bash target auto-complete.
2015-11-11 21:46:33 -08:00
Nico Weber
dda86b7540 Merge pull request #1046 from zed0/master
Speed up zsh target completion
2015-11-11 21:46:19 -08:00
Evan Martin
4ffe56d387 Merge pull request #1007 from mikesep/aix
Support for AIX
2015-11-11 17:19:00 -08:00
Nico Weber
a65240d52c Merge pull request #999 from colincross/dumbstatus
Print status when edge finishes on dumb terminals
2015-11-11 17:13:30 -08:00
Nico Weber
935788e2c0 Merge pull request #964 from nicolasdespres/sighup
Cleanup build on SIGHUP.
2015-11-11 16:51:29 -08:00
Nico Weber
381e56a34c Merge pull request #763 from drbo/master
Allow paths with international characters in depfiles
2015-11-11 16:34:38 -08:00
Nico Weber
805875b44a Try to fix #685 2015-11-11 13:54:14 -08:00
Evan Martin
b1129b15ff drop more references to github/martine 2015-11-11 13:34:24 -08:00
Nico Weber
5e076f0593 Update link to point to ninja-build.org 2015-11-11 13:27:16 -08:00
Nico Weber
366809c178 Merge pull request #1049 from nico/update-links
Make links point to org page
2015-11-11 11:54:07 -08:00
Nico Weber
c2307f9277 Make links point to org page 2015-11-11 11:53:15 -08:00
Nico Weber
74a40291bb test commit 2015-11-11 11:36:16 -08:00
Hadi Moshayedi
fc135c456d 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.
2015-10-31 06:13:33 -04:00
Ben Falconer
530d2b1666 Speed up zsh target completion 2015-10-30 14:43:32 +00:00
Mike Seplowitz
aa14d6e067 Separate bootstrapped build from final build
AIX does not support rebuilding ninja in-place from the bootstrapped ninja.
2015-10-22 10:05:44 -04:00
Nico Weber
083b6b0406 Merge pull request #1015 from moroten/docs-relpath
Describe why to use relative paths
2015-10-21 20:07:02 -07:00
Nico Weber
f4dfefda95 Merge pull request #1040 from peter1000/patch-1
Fixes typo
2015-10-21 18:49:56 -07:00
Nico Weber
afb3073005 Merge pull request #1029 from nicolasdespres/fix-doc-typo
Fix typo.
2015-10-21 16:35:03 -07:00
peter1000
deb6a40178 Fixes typo 2015-10-19 18:44:30 -02:00
Nicolas Despres
9c61b016d5 Fix typo. 2015-09-24 20:02:43 +02:00
Nicolas Despres
23de4b25e9 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).
2015-09-20 15:04:42 +02:00
Nico Weber
a48434493d Merge pull request #1014 from moroten/optimize-stringpiece
Optimize StringPiece hash map
2015-09-07 16:52:25 -07:00
Nico Weber
cb17a11d21 Merge pull request #1018 from nico/spell
Merge LLVM r242069, make spell checking allocate less memory.
2015-09-07 14:35:21 -07:00
Nico Weber
fdb885dec7 Merge LLVM r242069, make spell checking allocate less memory. 2015-09-07 14:26:19 -07:00
Fredrik Medley
41d2b035e2 Optimize StringPiece hash map
Replace strncmp with memcmp to improve performance.

Signed-off-by: Fredrik Medley <fredrik.medley@gmail.com>
2015-09-03 22:19:25 +02:00
Fredrik Medley
3f5b682bfd 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>
2015-09-03 21:45:42 +02:00
Nico Weber
2810ffb2b5 Merge pull request #1009 from sgraham/fix-null.o
Don't output null.o during configure
2015-08-26 23:34:48 -07:00
Scott Graham
b8f4ad12c0 Don't output null.o during configure 2015-08-26 19:51:15 -07:00
Mike Seplowitz
cdab57de00 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.
2015-08-19 08:43:59 -04:00
Mike Seplowitz
94c10a6a18 Implement GetLoadAverage on AIX using libperfstat 2015-08-19 08:43:58 -04:00
Mike Seplowitz
164e7f9494 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.
2015-08-19 08:43:58 -04:00
Mike Seplowitz
da4e98b715 Start AIX port 2015-08-19 08:42:06 -04:00
Mike Seplowitz
40a4808074 Strip tabs from od's output
/bin/od on Solaris and AIX both generate tabs.
2015-08-19 08:42:05 -04:00
Nico Weber
30d1d7b8da Merge pull request #1003 from sgraham/2015-compile
Fix compile on VS2015
2015-08-10 08:35:33 -07:00
Scott Graham
956b4f1bc4 Remove accidental changes 2015-08-09 21:27:39 -07:00
Scott Graham
a6265082f4 Some mucking with std:: for set_terminate and terminate_handler 2015-08-09 21:25:09 -07:00
Scott Graham
a4327b9fb0 Set _HAS_EXCEPTIONS=0 on MSVC 2015-08-09 21:02:23 -07:00
Nico Weber
ddc1777449 Merge pull request #998 from LindleyF/stdc-format-macros
Make sure not to re-define __STDC_FORMAT_MACROS.
2015-08-02 17:30:44 -07:00
Lindley French
de1dd6e064 Make sure not to re-define __STDC_FORMAT_MACROS. 2015-07-30 17:33:11 -07:00
Colin Cross
a4751630cd 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.
2015-07-30 17:30:52 -07:00
Nico Weber
7182f8776c Merge pull request #997 from mikesep/assert-arg-order
Correct order of ASSERT_EQ arguments
2015-07-30 11:21:47 -07:00
Mike Seplowitz
4ada4e7ec9 Correct order of ASSERT_EQ arguments
The correct order is ASSERT_EQ(expected, actual).
2015-07-30 11:51:06 -04:00
Nico Weber
c06fdc8261 Merge pull request #988 from nico/slashes
win: print right slashes in 'unknown target' message
2015-07-10 12:24:23 -07:00
Nico Weber
f30508e79d win: print right slashes in 'unknown target' message 2015-07-10 12:15:00 -07:00
Nico Weber
dc308bfca9 Merge pull request #973 from sgraham/canonicalize-fix
Fix crash in attempting to canonicalize paths longer than _MAX_PATH
2015-07-05 15:53:46 -07:00
Nico Weber
4e6fbd9e4e Merge pull request #979 from stinb/bootstrap-out-of-source
Bootstrap out of source
2015-07-05 15:53:28 -07:00
Nico Weber
c81c127a0c fix typos, punctuation, redundant words in HACKING.md 2015-07-01 17:52:16 -07:00
Nico Weber
184927e8a7 Merge pull request #984 from martine/vcvars
point people at more detailed build docs if they're on Windows
2015-06-30 17:00:42 -07:00
Evan Martin
53e5aed022 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.
2015-06-30 15:29:15 -07:00