[coreboot-gerrit] Change in coreboot[master]: [WIP]: Filter cpp comments

Nico Huber (Code Review) gerrit at coreboot.org
Wed Nov 14 22:07:56 CET 2018


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 at 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 '^# '

-- 
To view, visit https://review.coreboot.org/29640
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5fdaf8cacc26d990a7571bfe6c99a63a427d0944
Gerrit-Change-Number: 29640
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181114/251a29ee/attachment.html>


More information about the coreboot-gerrit mailing list