[C++] Skip empty command
diff --git a/exec.cc b/exec.cc
index 44ef68b..fb0ade7 100644
--- a/exec.cc
+++ b/exec.cc
@@ -170,6 +170,8 @@
     current_dep_node_ = n;
     for (Value* v : n->cmds) {
       shared_ptr<string> cmd = v->Eval(ev_);
+      if (TrimSpace(*cmd) == "")
+        continue;
       while (true) {
         size_t index = cmd->find('\n');
         if (index == string::npos)