From b4a6ddb07475395c8a916d8f522e47fba90f9ca2 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 1 Oct 2019 21:08:38 +0300 Subject: [PATCH] Preprocessing writes the intermediate output to *.preprocessed files. This makes debugging various DSL syntax errors much easier since the line number in the error corresponds to the line numbers in these files. --- acc/preprocess.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acc/preprocess.sh b/acc/preprocess.sh index dad6b2b..7453070 100755 --- a/acc/preprocess.sh +++ b/acc/preprocess.sh @@ -1,4 +1,4 @@ #!/bin/bash # Preprocesses the give file using GCC. This script is usually automatically called in # ./compile.sh, but may be called also individually for debugging purposes. -cat $1 | gcc ${@:2} -x c -E - | sed "s/#.*//g" +cat $1 | gcc ${@:2} -x c -E - | sed "s/#.*//g" | tee ${PWD}/$(basename -- "$1").preprocessed