=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/engine.c,v retrieving revision 1.52 retrieving revision 1.53 diff -u -r1.52 -r1.53 --- src/usr.bin/make/engine.c 2017/01/29 10:04:13 1.52 +++ src/usr.bin/make/engine.c 2017/07/09 15:28:00 1.53 @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.52 2017/01/29 10:04:13 espie Exp $ */ +/* $OpenBSD: engine.c,v 1.53 2017/07/09 15:28:00 espie Exp $ */ /* * Copyright (c) 2012 Marc Espie. * @@ -783,6 +783,10 @@ return false; /* always flush for other stuff */ fflush(stdout); + + /* Optimization: bypass comments entirely */ + if (*cmd == '#') + return false; /* Fork and execute the single command. If the fork fails, we abort. */ switch (cpid = fork()) {