src/func.cc
// A hack for Android build. We need to evaluate things like $((3+4))
// when we emit ninja file, because the result of such expressions
// will be passed to other make functions.
// TODO: Maybe we should introduce a helper binary which evaluate
// make expressions at ninja-time.
A hack for Android build. We need to evaluate things like $((3+4))
when we emit ninja file, because the result of such expressions
will be passed to other make functions.
TODO: Maybe we should introduce a helper binary which evaluate
make expressions at ninja-time.
A hack for Android build . We need to evaluate things like $ (( 3 + 4 )) when we emit ninja file because the result of such expressions will be passed to other make functions . TODO : Maybe we should introduce a helper binary which evaluate make expressions at ninja - time .
static bool HasNoIoInShellScript(const string& cmd) {
  if (cmd.empty())
    return true;
  if (HasPrefix(cmd, "echo $((") && cmd[cmd.size() - 1] == ')')
    return true;
  return false;
}
static bool HasNoIoInShellScript ( const string & cmd ) { if ( cmd . empty ( ) ) return true ; if ( HasPrefix ( cmd , " " ) && cmd [ cmd . size ( ) - 1 ] == ' ' ) return true ; return false ; }
A hack for Android build.
A hack for Android build .