Commit Graph

79 Commits

Author SHA1 Message Date
Evan Martin
d838f8ed07 fix TODO: correct dependencies for inline.sh
Not sure why I just didn't write this right the first time; when running
a script for its output, the script is always an implicit input of the
output.
2011-11-13 12:48:32 -08:00
Nico Weber
d0a3c5c373 Add a EditDistance() function based on the one in llvm/lib/Support/StringRef.cpp. 2011-11-13 12:17:53 -08:00
Peter Collingbourne
7cf2bdffe2 Implement generator rules
Introduce a rule attribute "generator" which, if present, specifies
that this rule is used to re-invoke the generator program.  Files built
using generator rules are treated specially in two ways: firstly,
they will not be rebuilt if the command line changes; and secondly,
they are not cleaned by default.

A command line flag "-g" is introduced for the clean tool, which
causes it to remove generator files.

Fixes issue #102.
2011-10-15 20:23:50 +01:00
Peter Collingbourne
766b2365a7 Disable assertion checks unless --debug is enabled 2011-09-24 22:35:29 +01:00
Evan Martin
bbc1110101 delete .a files before adding to them with ar
ar doesn't have a mode to just rebuild the file from scratch, so delete
it manually.

Fixes issue #105.
2011-09-14 12:08:02 -07:00
Thiago Farina
b39616b921 Split ninja_test.cc into state_test.cc and disk_interface_test.cc
Signed-off-by: Thiago Farina <tfarina@chromium.org>
2011-09-11 19:29:38 -03:00
Evan Martin
f5ac6b4cea link gtest code with -lpthread
I broke this in a refactoring.
2011-09-09 08:53:08 -07:00
Thiago Farina
50d9bd7a63 Move EvalString tests to eval_env_test.cc
Signed-off-by: Thiago Farina <tfarina@chromium.org>
2011-09-08 23:51:53 -03:00
Evan Martin
e0fb5ba60b Merge branch 'master' of github.com:martine/ninja
Conflicts:
	configure.py
2011-09-07 18:48:41 -07:00
Evan Martin
32855955c6 allow --with-gtest flag to use unpacked gtest dir
Useful for building on Macs.
2011-09-07 16:47:57 -07:00
Evan Martin
7a3dd0d534 Merge pull request #96 from tfarina/disk-interface-test
Move DiskInterfaceTest into its own source file.
2011-09-07 16:10:50 -07:00
Thiago Farina
cf519344ca Move DiskInterfaceTest into its own source file.
TEST=ninja_test --gtest_filter=DiskInterface*

Signed-off-by: Thiago Farina <tfarina@chromium.org>
2011-09-07 14:40:41 -03:00
Evan Martin
b41da2119a preserve configure.py params across re-runs 2011-09-06 14:04:31 -07:00
Evan Martin
46d1b2cef3 build only the main binary by default 2011-09-06 13:00:38 -07:00
Evan Martin
5d697b9fae make --profile take an argument to use either gmon or google-pprof 2011-09-06 11:52:32 -07:00
Thiago Farina
3bf1d4b3f0 Factor out State struct from ninja_jumble.cc into its header/source files.
This was a TODO in src/ninja_jumble.cc. Now this task is completed.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
2011-09-03 15:16:08 -03:00
Evan Martin
b0dac493c4 Merge pull request #82 from tfarina/disk-interface
Factor out DiskInterface class into its own source/header files.
2011-08-23 09:17:23 -07:00
Richard Larocque
9611c8a6f4 Update configure.py for ninja module rename 2011-08-17 11:32:39 -07:00
Thiago Farina
f8f63a4a6a Factor out DiskInterface class into its own source/header files.
This is a TODO in src/ninja_jumble.cc

Signed-off-by: Thiago Farina <tfarina@chromium.org>
2011-08-10 09:47:32 -03:00
Evan Martin
f506c49387 add a --debug option to configure 2011-07-25 11:22:33 -07:00
Grzegorz Blach
0c42702d7c use /usr/bin/env to find python interpreter 2011-06-20 22:35:34 +02:00
Thiago Farina
2e173199df ninja: Split StatCache struct into its own header file.
Note: This is a TODO in ninja_jumble.cc.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
2011-05-31 09:39:45 -07:00
Evan Martin
2bdf6b976b add --profile configure flag 2011-05-25 10:38:00 -07:00
Evan Martin
939597fb21 add a test program for evaluating depfile parse speed 2011-05-24 18:02:29 -07:00
Hiroyuki Iwatsuki
dffc0a2873 fix the error: 'asciidoc: To many arguments' 2011-05-16 08:38:11 +09:00
Evan Martin
17a0335519 move various doc files out of top-level directory 2011-05-14 16:11:41 -07:00
Evan Martin
e00f0b1586 remove order-only hacks now that semantics changed 2011-05-13 16:28:41 -07:00
Evan Martin
f685c540be make platform a command-line arg to configure 2011-05-09 08:58:13 -07:00
Evan Martin
3a48d1027e rename gen-build-file to configure
Change it so it always writes build.ninja; easier to run directly.
2011-05-08 21:53:52 -07:00