summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-22 22:45:32 +0000
committerIan Lynagh <igloo@earth.li>2011-01-22 22:45:32 +0000
commitb36b42fdc0554447ead96305dc2979ffcd74aff9 (patch)
treee0ab8827b721eec2f791e7baabb8bf907e145d44 /utils
parent295016c3c0aa1f407436136e39ababf2dc8b50c6 (diff)
downloadhaskell-b36b42fdc0554447ead96305dc2979ffcd74aff9.tar.gz
Use := when assigning the result of $(wildcard ...)
Avoids repeated evaluations of things that need system calls etc
Diffstat (limited to 'utils')
-rw-r--r--utils/ghc-cabal/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ghc-cabal/Main.hs b/utils/ghc-cabal/Main.hs
index 5ebca2ad7e..a4566f1132 100644
--- a/utils/ghc-cabal/Main.hs
+++ b/utils/ghc-cabal/Main.hs
@@ -358,7 +358,7 @@ generate config_args distdir directory
variablePrefix ++ "_EXTRA_LIBRARIES = " ++ unwords (extraLibs bi),
variablePrefix ++ "_EXTRA_LIBDIRS = " ++ unwords (extraLibDirs bi),
variablePrefix ++ "_C_SRCS = " ++ unwords (cSources bi),
- variablePrefix ++ "_CMM_SRCS = $(addprefix cbits/,$(notdir $(wildcard " ++ directory ++ "/cbits/*.cmm)))",
+ variablePrefix ++ "_CMM_SRCS := $(addprefix cbits/,$(notdir $(wildcard " ++ directory ++ "/cbits/*.cmm)))",
variablePrefix ++ "_DATA_FILES = " ++ unwords (dataFiles pd),
-- XXX This includes things it shouldn't, like:
-- -odir dist-bootstrapping/build