diff options
author | simonmar <unknown> | 2003-07-24 15:04:41 +0000 |
---|---|---|
committer | simonmar <unknown> | 2003-07-24 15:04:41 +0000 |
commit | d1d6d84f5f551a9adef99237250e0375a556fa2e (patch) | |
tree | 949067a4a8f8f983c48d349c75ccd4aa99eeca42 /mk/paths.mk | |
parent | 52bd2cc7a9f328e6a7f3f50ac0055a5361f457c1 (diff) | |
download | haskell-d1d6d84f5f551a9adef99237250e0375a556fa2e.tar.gz |
[project @ 2003-07-24 15:04:41 by simonmar]
Fix for building _stub.c files in BootingFromHc mode.
Diffstat (limited to 'mk/paths.mk')
-rw-r--r-- | mk/paths.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/paths.mk b/mk/paths.mk index a0ffb97a9b..0e55c3f180 100644 --- a/mk/paths.mk +++ b/mk/paths.mk @@ -193,12 +193,14 @@ HS_IFACES = $(addsuffix .$(way_)hi,$(basename $(HS_SRCS))) GC_C_OBJS = $(addsuffix _stub_ffi.$(way_)o,$(basename $(filter %.gc,$(SRCS)))) HSC_C_OBJS = $(addsuffix _hsc.$(way_)o,$(basename $(filter %.hsc,$(SRCS)))) -# Always remove $(EXCLUDED_C_SRCS) from C_SRCS +ifeq "$(BootingFromHc)" "NO" +# We don't want to build the _stub.c files ourselves, unless we're +# bootstrapping from .hc files. EXCLUDED_C_SRCS = $(patsubst %.lhs, %_stub.c, $(HS_SRCS)) \ $(patsubst %.hs, %_stub.c, $(HS_SRCS)) \ $(patsubst %.gc, %_stub_ffi.c, $(GC_SRCS)) \ $(patsubst %.gc, %_stub_ffi.h, $(GC_SRCS)) - +endif C_SRCS = $(filter-out $(EXCLUDED_C_SRCS),$(filter %.c,$(SRCS))) C_OBJS = $(addsuffix .$(way_)o,$(basename $(C_SRCS))) |