Skip to content

Commit 881012f

Browse files
committed
quiet ANTLR
1 parent 73370f4 commit 881012f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graalpython/com.oracle.graal.python.parser.antlr/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3636
# SOFTWARE.
3737

38+
QUIETLY$(MX_VERBOSE) = @
3839
TARGETS=${OUTPUT_PATH}/Python3BaseVisitor.java \
3940
${OUTPUT_PATH}/Python3Listener.java \
4041
${OUTPUT_PATH}/Python3BaseListener.java \
@@ -54,8 +55,8 @@ define postprocess_file
5455
endef
5556

5657
${STAMP}: ${SOURCE}
57-
touch $@
58-
${JAVA_HOME}/bin/java -cp ${ANTLR_JAR} org.antlr.v4.Tool -visitor -package ${PARSER_PKG} -o ${OUTPUT_PATH} ${SOURCE}
58+
$(QUIETLY) touch $@
59+
$(QUIETLY) ${JAVA_HOME}/bin/java -cp ${ANTLR_JAR} org.antlr.v4.Tool -visitor -package ${PARSER_PKG} -o ${OUTPUT_PATH} ${SOURCE}
5960
$(foreach var,$(TARGETS),$(call postprocess_file,$(var));)
6061

6162
clean:

graalpython/com.oracle.graal.python.parser.antlr/postprocess.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def postprocess(file):
109109

110110
if __name__ == '__main__':
111111
fpath = sys.argv[1]
112-
print("postprocessing {}".format(fpath))
113112
with open(fpath, 'r') as FILE:
114113
content = COPYRIGHT_HEADER.format(postprocess(FILE))
115114
with open(fpath, 'w+') as FILE:

0 commit comments

Comments
 (0)