diff options
author | Ian Lynagh <igloo@earth.li> | 2011-01-22 22:45:32 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-01-22 22:45:32 +0000 |
commit | b36b42fdc0554447ead96305dc2979ffcd74aff9 (patch) | |
tree | e0ab8827b721eec2f791e7baabb8bf907e145d44 /rts/ghc.mk | |
parent | 295016c3c0aa1f407436136e39ababf2dc8b50c6 (diff) | |
download | haskell-b36b42fdc0554447ead96305dc2979ffcd74aff9.tar.gz |
Use := when assigning the result of $(wildcard ...)
Avoids repeated evaluations of things that need system calls etc
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r-- | rts/ghc.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk index 0721e45edd..4303656b58 100644 --- a/rts/ghc.mk +++ b/rts/ghc.mk @@ -35,12 +35,13 @@ else ALL_DIRS += posix endif +EXCLUDED_SRCS := EXCLUDED_SRCS += rts/Main.c EXCLUDED_SRCS += rts/parallel/SysMan.c EXCLUDED_SRCS += $(wildcard rts/Vis*.c) -rts_C_SRCS = $(filter-out $(EXCLUDED_SRCS),$(wildcard rts/*.c $(foreach dir,$(ALL_DIRS),rts/$(dir)/*.c))) -rts_CMM_SRCS = $(wildcard rts/*.cmm) +rts_C_SRCS := $(filter-out $(EXCLUDED_SRCS),$(wildcard rts/*.c $(foreach dir,$(ALL_DIRS),rts/$(dir)/*.c))) +rts_CMM_SRCS := $(wildcard rts/*.cmm) # Don't compile .S files when bootstrapping a new arch ifneq "$(PORTING_HOST)" "YES" @@ -67,7 +68,7 @@ rts/dist/build/sm/Evac_thr.c : rts/sm/Evac.c | $$(dir $$@)/. rts/dist/build/sm/Scav_thr.c : rts/sm/Scav.c | $$(dir $$@)/. cp $< $@ -rts_H_FILES = $(wildcard includes/*.h) $(wildcard rts/*.h) +rts_H_FILES := $(wildcard includes/*.h) $(wildcard rts/*.h) ifeq "$(USE_DTRACE)" "YES" DTRACEPROBES_H = rts/dist/build/RtsProbes.h |