diff options
| author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-27 05:48:38 +0900 |
|---|---|---|
| committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-06-29 12:26:47 +0900 |
| commit | d9533329dc5e6a969882a89349fa8c69927774e0 (patch) | |
| tree | 17dc950d6821371582c4db019c40d4356536387a /rule.cc | |
| parent | 6f04aed67d68992c7b5c635b6c1f7aa83fdeb1b7 (diff) | |
Trim leading ./ when kati includes a file
Diffstat (limited to 'rule.cc')
| -rw-r--r-- | rule.cc | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -24,15 +24,6 @@ namespace { -// Strip leading sequences of './' from file names, so that ./file -// and file are considered to be the same file. -// From http://www.gnu.org/software/make/manual/make.html#Features -StringPiece TrimLeadingCurdir(StringPiece s) { - while (s.substr(0, 2) == "./") - s = s.substr(2); - return s; -} - static void ParseInputs(Rule* r, StringPiece s) { bool is_order_only = false; for (StringPiece input : WordScanner(s)) { |
