aboutsummaryrefslogtreecommitdiff
path: root/main.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add --color_warnings to make warnings/errors like clangDan Willemsen2017-02-221-2/+2
| | | | | | | | | | This adds new (WARN|KATI_WARN|ERROR)_LOC log macro variants that take a location as the first argument, and will prefix that location information to the warning/error lines. When --color_warnings is enabled, it reformats them to have a standard warning:/error: infix, and adds colors in order to match the warnings/errors produced by clang.
* Support all kinds of command line variablesShinichiro Hamaji2016-05-201-1/+6
| | | | This fixes #51. TODO: add tests for command line variables
* [C++] Associate global variables with Symbols directlyShinichiro Hamaji2016-02-221-13/+8
|
* [C++] Set CPU affinityShinichiro Hamaji2016-02-161-0/+3
| | | | | Sticking to a single processor improves the performance while we are running only a single thread.
* [C++] Report no-need-to-regen message to stderrShinichiro Hamaji2016-02-091-1/+1
| | | | For consistency with regen.cc
* [C++] Do not delete Var twiceShinichiro Hamaji2016-02-081-0/+2
|
* [C++] Remove Evaluator::in_vars_Shinichiro Hamaji2016-02-051-4/+3
|
* [C++] Move NeedsRegen from ninja.cc to regen.ccShinichiro Hamaji2016-01-201-0/+1
|
* [C++] Never specify non-positive -j valueShinichiro Hamaji2015-12-051-1/+1
|
* [C++] Stop using realpath(1) to handle $(realpath) in recipeShinichiro Hamaji2015-10-081-0/+12
| | | | This should fix $(realpath) on Mac.
* [C++] Do not find first Makefile when -f is specifiedShinichiro Hamaji2015-10-081-12/+15
|
* [C++] Always emit default statement in ninjaShinichiro Hamaji2015-09-291-1/+1
| | | | | Otherwise, build.ninja generated with --gen_all_(phony_|)targets runs unnecessary build targets if no target is specified.
* [C++] Use g_flags instead of passing flags to ninja.ccShinichiro Hamaji2015-09-281-7/+2
|
* Rename value.* and ast.* to expr.* and stmt.*, respectivelyShinichiro Hamaji2015-09-241-13/+13
|
* [C++] A global refactoring for command line flagsShinichiro Hamaji2015-09-091-143/+22
| | | | So we will be able to use the command line parser for sub-makes.
* [C++] Fix submake_basic.mk for non-ninja modeShinichiro Hamaji2015-09-091-2/+21
|
* [C++] Define MAKE=make -j cpus/2Shinichiro Hamaji2015-09-041-2/+4
| | | | | | | So that sub-make works, although ninja won't be used. Also define KATI bootstrap variable to make it easier to determine if we are running make or kati.
* Correct the priority of initial variablesShinichiro Hamaji2015-09-041-16/+15
| | | | Also make builtin variables recursive.
* Add --gen_all_phony_targets flagShinichiro Hamaji2015-09-021-0/+3
| | | | | Let me keep this flag for a while, as there would be some people who are still using m2n+ninja.sh workflow.
* Merge branch 'regen' of git://github.com/danw/kati into danw-regenShinichiro Hamaji2015-09-021-1/+1
|\
| * [C++] Regen ninja file if ckati arguments changeDan Willemsen2015-08-251-1/+1
| | | | | | | | | | | | Otherwise building different targets doesn't work. Change-Id: Ie841fb8e8ae8df394705c39d146425e2128ffc77
* | [C++] Stop restoring environment variables with --ninja_suffixShinichiro Hamaji2015-09-021-2/+0
|/ | | | | | Also remove --lunch in m2n. They were mainly for my development and are not necessary anymore. .kati_env causes an error message for mmm build in Android repo.
* [C++] Introduce --remote_num_jobs instead of KATI_NINJA_NUM_JOBSShinichiro Hamaji2015-08-191-0/+6
|
* [C++] Fix ckati -fShinichiro Hamaji2015-08-151-2/+2
|
* [C++] Remove all shared_ptr<string>Shinichiro Hamaji2015-08-141-3/+3
|
* [C++] Stop using shared_ptr<string> in SimpleVarShinichiro Hamaji2015-08-141-2/+2
|
* [C++] Update the timestamp of .kati_stampShinichiro Hamaji2015-08-131-3/+4
|
* [C++] Add --ignore_dirty flagShinichiro Hamaji2015-08-131-0/+3
| | | | It should be safe to ignore any changes in out/ for Android.
* [C++] Add --kati_dump_stamp flagShinichiro Hamaji2015-08-111-3/+11
|
* [C++] Add --regen_ignoring_kati_binary flag for developmentShinichiro Hamaji2015-08-061-1/+5
|
* [C++] Warn potential parse errorsShinichiro Hamaji2015-08-051-0/+5
|
* [C++] Automatically set -j based on the number of CPUsShinichiro Hamaji2015-08-011-2/+1
|
* [C++] Fix Mac buildShinichiro Hamaji2015-07-311-3/+1
|
* [C++] Use nano seconds for timestamp checkShinichiro Hamaji2015-07-311-2/+3
|
* [C++] Store original environment variables in .kati_stampShinichiro Hamaji2015-07-311-10/+10
|
* [C++] Report time spent for regen checkShinichiro Hamaji2015-07-311-0/+1
|
* [C++] Regenerate ninja file when $(wildcard) is changedShinichiro Hamaji2015-07-311-0/+1
|
* [C++] Update ninja file only when necessaryShinichiro Hamaji2015-07-311-1/+16
| | | | | | | | | | | As this feature is incomplete, this is enabled only with --regen flag. I decided not to use ninja's "generator" feature because we cannot create appropriate regeneration rules for globs in Android. There are some directory names which are also used as target names (e.g., "cts"). Ninja tries to build such targets to check if regeneration is necessary.
* [C++] Add --lunch flag to m2nShinichiro Hamaji2015-07-241-0/+2
| | | | Now ninja.sh tries to recover environment variables.
* [C++] Add a rule for ninja file regenerationShinichiro Hamaji2015-07-241-3/+15
|
* [C++] ninja: allow specifying output directory for ninja filesColin Cross2015-07-201-1/+4
| | | | | | Allow passing --ninja_dir to set the directory where build.ninja and ninja.sh will be run from. Also remove the cd $(dirname $0) from ninja.sh, to allow the caller to set the current directory.
* Introduce --detect_android_echo flagShinichiro Hamaji2015-07-181-0/+2
| | | | | So the description detection will not make ninja based testing even harder.
* Set CXX=c++ on MacOSXShinichiro Hamaji2015-07-171-0/+4
|
* Do not read non-capital makefile on MacOSXShinichiro Hamaji2015-07-171-0/+2
|
* [C++] Have all phony targets in build.ninjaShinichiro Hamaji2015-07-161-1/+1
| | | | | Also specify the default target not to build all phony targets by default.
* [C++] Make it possible to specify the number of jobsShinichiro Hamaji2015-07-061-0/+16
|
* Make it possible to generate ninja for specific targetShinichiro Hamaji2015-07-061-1/+4
|
* [C++] Rename time.h to timeutil.hShinichiro Hamaji2015-07-051-1/+1
| | | | Using a standard header name is not a good idea.
* [C++] Add --goma_dir flagShinichiro Hamaji2015-07-031-0/+2
|
* [C++] Suppress autovar_assign.mk and value.mkShinichiro Hamaji2015-07-031-1/+0
|