Nico Huber has uploaded this change for review. ( https://review.coreboot.org/29640
Change subject: [WIP]: Filter cpp comments ......................................................................
[WIP]: Filter cpp comments
Change-Id: I5fdaf8cacc26d990a7571bfe6c99a63a427d0944 Signed-off-by: Nico Huber nico.h@gmx.de --- M toolchain.inc A util/scripts/cpp_filter_comments.sh 2 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/29640/1
diff --git a/toolchain.inc b/toolchain.inc index ec57b5d..b934e65 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -23,6 +23,7 @@
export CCACHE_COMPILERCHECK=content export CCACHE_BASEDIR=$(top) +export CCACHE_PREFIX_CPP=$(top)/util/scripts/cpp_filter_comments.sh
$(foreach arch,$(ARCH_SUPPORTED), \ $(eval CC_$(arch):=$(CCACHE) $(CC_$(arch)))) diff --git a/util/scripts/cpp_filter_comments.sh b/util/scripts/cpp_filter_comments.sh new file mode 100755 index 0000000..b11dcdb --- /dev/null +++ b/util/scripts/cpp_filter_comments.sh @@ -0,0 +1,3 @@ +#!/bin/env sh + +exec "$@" | grep -v '^# '