platform/upstream/ninja.git
8 years agobrowse.py: allow port override via environment variable
Peter Wu [Thu, 25 Feb 2016 23:16:15 +0000 (00:16 +0100)]
browse.py: allow port override via environment variable

8 years agoMerge pull request #1110 from G4m4/explicit_std_prefix
Nico Weber [Wed, 17 Feb 2016 20:03:14 +0000 (15:03 -0500)]
Merge pull request #1110 from G4m4/explicit_std_prefix

Fix ambiguous call to set_terminate on Windows platform

8 years agoFix ambiguous call to set_terminate on Windows platform
g4m4 [Wed, 17 Feb 2016 10:35:52 +0000 (11:35 +0100)]
Fix ambiguous call to set_terminate on Windows platform

On Windows set_terminate() could either be the standard C++ one or (actually the same one but in the global namespace) the CRT one declared in corecrt_terminate.h
Hence this ambiguity - this patch solves it.

Signed-off-by: g4m4 <misept.dieseneuf@gmail.com>
8 years agoMerge pull request #1107 from nicolasdespres/ninja_syntax_implicit_outputs
Nico Weber [Sun, 7 Feb 2016 20:57:30 +0000 (15:57 -0500)]
Merge pull request #1107 from nicolasdespres/ninja_syntax_implicit_outputs

Add support for implicit outputs in ninja_syntax.py.

8 years agoMerge pull request #1108 from edbaunton/patch-1
Nico Weber [Sun, 7 Feb 2016 20:56:19 +0000 (15:56 -0500)]
Merge pull request #1108 from edbaunton/patch-1

Add link to mailing list

8 years agoAdd link to mailing list
Ed Baunton [Sat, 6 Feb 2016 22:56:20 +0000 (22:56 +0000)]
Add link to mailing list

As a convenience to new users, provide a link to the mailing list.

8 years agoAdd support for implicit outputs in ninja_syntax.py.
Nicolas Despres [Sat, 6 Feb 2016 08:37:51 +0000 (09:37 +0100)]
Add support for implicit outputs in ninja_syntax.py.

8 years agoMerge pull request #1106 from nico/winfix
Nico Weber [Fri, 5 Feb 2016 21:26:52 +0000 (16:26 -0500)]
Merge pull request #1106 from nico/winfix

win: Only drop /showIncludes in bootstrap builds.

8 years agowin: Only drop /showIncludes in bootstrap builds.
Nico Weber [Fri, 5 Feb 2016 18:28:56 +0000 (13:28 -0500)]
win: Only drop /showIncludes in bootstrap builds.
\vFixes #1103.

8 years agoMerge pull request #1101 from fbenkstein/vs2010
Nico Weber [Fri, 5 Feb 2016 16:39:40 +0000 (11:39 -0500)]
Merge pull request #1101 from fbenkstein/vs2010

disable warning about conditional expressions

8 years agoMSVC: disable warning about constant conditional expressions
Frank Benkstein [Thu, 4 Feb 2016 12:20:58 +0000 (13:20 +0100)]
MSVC: disable warning about constant conditional expressions

The standard headers for Visual Studio 2008 generate a warning about
constant conditional expressions when compiled with exception support
disabled.  This is caused by the _CATCH_ALL macro in xstddef which is
defined thusly:

  #ifdef _HAS_EXCEPTIONS
  #define _CATCH_ALL } catch (...) {
  #else
  #define _CATCH_ALL } if (0) {
  #endif

8 years agoMerge pull request #1100 from nico/doc
Nico Weber [Wed, 3 Feb 2016 22:16:49 +0000 (17:16 -0500)]
Merge pull request #1100 from nico/doc

Minor updates to the manual.

8 years agoMinor updates to the manual.
Nico Weber [Wed, 3 Feb 2016 22:01:45 +0000 (17:01 -0500)]
Minor updates to the manual.

* Update link to Chromium's ninja docs (fixes #1038)
* Update cmake URL to what it redirects to, and mention that ninja
  is well-supported on all platforms in newer CMake versions.
* Let "others" link to the wiki page listing generators.

8 years agoMerge pull request #1033 from colincross/failed
Nico Weber [Wed, 3 Feb 2016 21:11:28 +0000 (16:11 -0500)]
Merge pull request #1033 from colincross/failed

Print output file on failure

8 years agoMerge pull request #989 from bradking/implicit-outputs
Nico Weber [Wed, 3 Feb 2016 21:07:11 +0000 (16:07 -0500)]
Merge pull request #989 from bradking/implicit-outputs

Add support for build statement implicit outputs

8 years agoMerge pull request #1060 from bradking/deduplicate-disk-interface
Nico Weber [Wed, 3 Feb 2016 20:57:10 +0000 (15:57 -0500)]
Merge pull request #1060 from bradking/deduplicate-disk-interface

Deduplicate disk abstraction infrastructure

8 years agoMerge pull request #1099 from bradking/fix-perftest-compilation
Nico Weber [Wed, 3 Feb 2016 20:47:56 +0000 (15:47 -0500)]
Merge pull request #1099 from bradking/fix-perftest-compilation

perftest: fix compilation after dupe_edge_should_err change

8 years agoReplace ManifestParser::FileReader with general FileReader
Brad King [Wed, 3 Feb 2016 18:44:46 +0000 (13:44 -0500)]
Replace ManifestParser::FileReader with general FileReader

Avoid having two separate filesystem interfaces.  Simplify test
infrastructure by avoiding custom `ManifestParser::FileReader`
implementations.

8 years agoExpose more details in FileReader::ReadFile signature
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.

8 years agoFactor a `FileReader` base class out of `DiskInterface`
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.

8 years agoAdd support for build statement implicit outputs
Brad King [Mon, 13 Jul 2015 19:25:50 +0000 (15:25 -0400)]
Add support for build statement implicit outputs

Some build rules produce outputs that are not mentioned on the command
line but that should be part of the build graph.  Such outputs should
not be named in the `$out` variable.  Extend the build statement syntax
to support specification of implicit outputs using the syntax
`| out1 out2` after the explicit outputs and before the `:`.

For example, compilation of a Fortran source file `foo.f90` that defines
`MODULE FOO` may now be specified as:

    rule fc
      command = f95 -c $in -o $out
    build foo.o | foo.mod: fc foo.f90

The `foo.mod` file is an implicit output generated by the compiler based
on the content of the source file and not mentioned on the command line.

8 years agoMerge pull request #1076 from colincross/canonicalize
Nico Weber [Tue, 2 Feb 2016 23:20:01 +0000 (18:20 -0500)]
Merge pull request #1076 from colincross/canonicalize

Canonicalize "." to "."

8 years agoperftest: fix compilation after dupe_edge_should_err change
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).

8 years agoMerge pull request #1096 from sgraham/dupe-edge-action
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

8 years agoMerge pull request #1098 from shinh/keepdep
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

8 years agoAdd -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.

8 years agodupe_edge_should_err from bool to enum
Scott Graham [Wed, 27 Jan 2016 19:10:34 +0000 (11:10 -0800)]
dupe_edge_should_err from bool to enum

8 years agoMerge pull request #1095 from sgraham/dupbuild-err
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

8 years agoMake dupbuild=err work in subninja
Scott Graham [Wed, 27 Jan 2016 03:44:27 +0000 (19:44 -0800)]
Make dupbuild=err work in subninja

8 years agoMerge pull request #1094 from sphawk/master
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

8 years agoMerge pull request #1085 from tetsuok/remove-unnecessary-std
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::`

8 years agofix for localized version of cl.exe
sphawk [Mon, 25 Jan 2016 13:38:08 +0000 (22:38 +0900)]
fix for localized version of cl.exe

8 years agoMerge pull request #1086 from tetsuok/use-container-based-infra-for-ci
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.

8 years agoUse 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.

8 years agoRemove unnecessary `std::`
Tetsuo Kiso [Sun, 10 Jan 2016 13:23:35 +0000 (05:23 -0800)]
Remove unnecessary `std::`

8 years agoMerge pull request #1073 from ninja-build/manual-font
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

8 years agoMerge pull request #1074 from ninja-build/manual-command
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

8 years agoMerge pull request #1082 from nicolasdespres/zshcomp-intermediary-targets
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.

8 years agoTeach 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.

8 years agoCanonicalize "." to "."
Colin Cross [Wed, 16 Dec 2015 23:29:02 +0000 (15:29 -0800)]
Canonicalize "." to "."

"." is a legal path, if the string is empty after canonicalization
return ".".

8 years agoadd a section to the manual discussing the command= variable
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.

8 years agouse the default font size for manual headings
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.

8 years agoMerge pull request #1069 from nicolasdespres/dry_manifest_regen
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.

8 years agoDo 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.

8 years agoMerge pull request #1042 from avallee/master
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

8 years agoMerge pull request #1062 from tfarina/bindings-typedef
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

8 years agoMerge pull request #1063 from ptzz/master
Evan Martin [Sun, 6 Dec 2015 19:16:42 +0000 (11:16 -0800)]
Merge pull request #1063 from ptzz/master

Fix typo

8 years agoMerge pull request #1064 from NiklasRosenstein/1043-msvc_deps_prefix-per-rule
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()

8 years agoadd "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

8 years agoFix typo
ptzz [Sun, 6 Dec 2015 01:23:49 +0000 (02:23 +0100)]
Fix typo

8 years agomake use of Bindings typedef
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.

8 years agoDisable long word wrapping entirely in comments.
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).

8 years agoprefer https in readme
Nico Weber [Thu, 19 Nov 2015 20:41:32 +0000 (12:41 -0800)]
prefer https in readme

8 years agoMerge pull request #1053 from ninja-build/configure
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

8 years agowhen building with cwd = source root, use relative paths
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.

8 years agorename the build-file variable $sourcedir to $root
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.

8 years agoput warning flags together
Evan Martin [Tue, 17 Nov 2015 22:23:13 +0000 (14:23 -0800)]
put warning flags together

8 years agoMerge pull request #1052 from ninja-build/docs
Nico Weber [Tue, 17 Nov 2015 22:20:12 +0000 (14:20 -0800)]
Merge pull request #1052 from ninja-build/docs

Minor doc fixes

8 years agodrop a [horizontal] definition table
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.

8 years agoimprove docs generation, including PDF output
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.

8 years agoprovide a better title for the manual
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.

8 years agoMerge pull request #1047 from pykello/master
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.

8 years agoMerge pull request #1046 from zed0/master
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

8 years agoFix indent in pull request #1042.
Alex Vallee [Thu, 12 Nov 2015 03:48:39 +0000 (22:48 -0500)]
Fix indent in pull request #1042.

8 years agoMerge pull request #1007 from mikesep/aix
Evan Martin [Thu, 12 Nov 2015 01:19:00 +0000 (17:19 -0800)]
Merge pull request #1007 from mikesep/aix

Support for AIX

8 years agoMerge pull request #999 from colincross/dumbstatus
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

8 years agoMerge pull request #964 from nicolasdespres/sighup
Nico Weber [Thu, 12 Nov 2015 00:51:29 +0000 (16:51 -0800)]
Merge pull request #964 from nicolasdespres/sighup

Cleanup build on SIGHUP.

8 years agoMerge pull request #763 from drbo/master
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

8 years agoTry to fix #685
Nico Weber [Wed, 11 Nov 2015 21:54:14 +0000 (13:54 -0800)]
Try to fix #685

8 years agodrop more references to github/martine
Evan Martin [Wed, 11 Nov 2015 21:34:13 +0000 (13:34 -0800)]
drop more references to github/martine

8 years agoUpdate link to point to ninja-build.org
Nico Weber [Wed, 11 Nov 2015 21:27:16 +0000 (13:27 -0800)]
Update link to point to ninja-build.org

8 years agoMerge pull request #1049 from nico/update-links
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

8 years agoMake links point to org page
Nico Weber [Wed, 11 Nov 2015 19:53:15 +0000 (11:53 -0800)]
Make links point to org page

8 years agotest commit
Nico Weber [Wed, 11 Nov 2015 19:36:16 +0000 (11:36 -0800)]
test commit

8 years agoSpeed-up bash target auto-complete.
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.

8 years agoSpeed up zsh target completion
Ben Falconer [Fri, 30 Oct 2015 14:43:32 +0000 (14:43 +0000)]
Speed up zsh target completion

8 years agoFix wrapping file paths in Writer.comment
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.

8 years agoSeparate bootstrapped build from final build
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.

8 years agoMerge pull request #1015 from moroten/docs-relpath
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

8 years agoMerge pull request #1040 from peter1000/patch-1
Nico Weber [Thu, 22 Oct 2015 01:49:56 +0000 (18:49 -0700)]
Merge pull request #1040 from peter1000/patch-1

Fixes typo

8 years agoMerge pull request #1029 from nicolasdespres/fix-doc-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.

8 years agoFixes typo
peter1000 [Mon, 19 Oct 2015 20:44:30 +0000 (18:44 -0200)]
Fixes typo

8 years agoPrint output file on failure
Colin Cross [Mon, 5 Oct 2015 21:17:56 +0000 (14:17 -0700)]
Print output file on failure

Modify the FAILED: output to provide the output files that failed to
build, followed by the failed command on the next line.  This makes the
failure much easier to read, as you can immediately see much shorter
name of the file that failed instead of trying to parse a very long
command line.  It also makes manually re-running the failed command much
easier because you can copy the whole line without ending up with the
FAILED: prefix.

8 years agoFix typo.
Nicolas Despres [Thu, 24 Sep 2015 18:02:43 +0000 (20:02 +0200)]
Fix typo.

8 years agoCleanup build on SIGHUP.
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).

8 years agoMerge pull request #1014 from moroten/optimize-stringpiece
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

8 years agoMerge pull request #1018 from nico/spell
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.

8 years agoMerge 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.

8 years agoOptimize StringPiece hash map
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>
8 years agoDescribe why to use relative paths
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>
8 years agoMerge pull request #1009 from sgraham/fix-null.o
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

8 years agoDon'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

8 years agoFix getopt for AIX
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.

8 years agoImplement GetLoadAverage on AIX using libperfstat
Mike Seplowitz [Tue, 13 Jan 2015 01:48:07 +0000 (20:48 -0500)]
Implement GetLoadAverage on AIX using libperfstat

8 years agoFix AIX compilation error related to printf macros
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.

8 years agoStart AIX port
Mike Seplowitz [Tue, 13 Jan 2015 01:47:55 +0000 (20:47 -0500)]
Start AIX port

8 years agoStrip tabs from od's output
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.

8 years agoMerge pull request #1003 from sgraham/2015-compile
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

8 years agoRemove accidental changes
Scott Graham [Mon, 10 Aug 2015 04:27:39 +0000 (21:27 -0700)]
Remove accidental changes

8 years agoSome mucking with std:: for set_terminate and terminate_handler
Scott Graham [Mon, 10 Aug 2015 04:25:09 +0000 (21:25 -0700)]
Some mucking with std:: for set_terminate and terminate_handler