From a6f62055835c5c3f9546818fbbcd43c73baef57f Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 6 Aug 2021 15:49:26 +0100 Subject: Implement compile_commands.json generation --- .vars.rc.do | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.vars.rc.do') diff --git a/.vars.rc.do b/.vars.rc.do index 8a31fe7..7c4d417 100755 --- a/.vars.rc.do +++ b/.vars.rc.do @@ -4,7 +4,7 @@ set -e # Ensure variables from the config aren't set before the config is read to # avoid capturing transient state unset {,T,H}{CC,CFLAGS,CPPFLAGS,LDFLAGS,LDLIBS} \ - colour debug optimise verbose warn werror + colour debug optimise verbose warn werror extra_targets CFLAGS=(-std=c11) TCFLAGS=(-fPIC) @@ -15,7 +15,7 @@ warnings=( -Wstrict-prototypes ) -declare -a {,T,H}{CFLAGS,CPPFLAGS,LDFLAGS,LDLIBS} +declare -a {,T,H}{CFLAGS,CPPFLAGS,LDFLAGS,LDLIBS} extra_targets if [ -e config.rc ]; then redo-ifchange config.rc @@ -72,7 +72,7 @@ done { echo "# generated by $0" - declare -p {T,H}{CC,CFLAGS,CPPFLAGS,LDFLAGS,LDLIBS} + declare -p {T,H}{CC,CFLAGS,CPPFLAGS,LDFLAGS,LDLIBS} extra_targets } >"$3" if [[ $verbose ]]; then -- cgit v1.2.3-54-g00ecf