guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: build: Move 'guild compile' flags to a variable.


From: Ludovic Courtès
Subject: 03/03: build: Move 'guild compile' flags to a variable.
Date: Fri, 30 Oct 2015 22:10:56 +0000

civodul pushed a commit to branch master
in repository guix.

commit 4fca58a6c6f0a5c7d3ac2363557fabeb6524865d
Author: Ludovic Courtès <address@hidden>
Date:   Fri Oct 30 23:10:01 2015 +0100

    build: Move 'guild compile' flags to a variable.
    
    * Makefile.am (GUILD_COMPILE_FLAGS): New variable.
      (.scm.go): Use it.
---
 Makefile.am |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 4f90b1d..b2ee324 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -337,6 +337,10 @@ AM_V_GUILEC = $(AM_V_GUILEC_$(V))
 AM_V_GUILEC_ = $(AM_V_GUILEC_$(AM_DEFAULT_VERBOSITY))
 AM_V_GUILEC_0 = @echo "  GUILEC" $@;
 
+# Flags passed to 'guild compile'.
+GUILD_COMPILE_FLAGS =                          \
+  -Wformat -Wunbound-variable -Warity-mismatch
+
 # Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling.  Otherwise, if
 # $GUILE_LOAD_COMPILED_PATH contains $(moduledir), we may find .go files in
 # there that are newer than the local .scm files (for instance because the
@@ -352,8 +356,7 @@ AM_V_GUILEC_0 = @echo "  GUILEC" $@;
        LC_ALL=C                                                        \
        $(top_builddir)/pre-inst-env                                    \
        $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)"        \
-         -Wformat -Wunbound-variable -Warity-mismatch                  \
-         --target="$(host)"                                            \
+         $(GUILD_COMPILE_FLAGS) --target="$(host)"                     \
          -o "$@" "$<"
 
 SUFFIXES = .go



reply via email to

[Prev in Thread] Current Thread [Next in Thread]