Commit 8a95a7eb authored by Simon Marlow's avatar Simon Marlow
Browse files

fix creation of ghc-inplace for non-std ways

parent 4cdf5e86
......@@ -754,11 +754,9 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
INPLACE_EXTRA_FLAGS = -optc-DWINDOWS
endif
$(INPLACE_SRC): ghc-inplace.c
$(SED) -e "s@GHC_PATH@$(GHC_PATH)@g" -e "s@TOP_ABS@$(FPTOOLS_TOP_ABS)@g" < $< > $@
$(INPLACE_PROG): $(INPLACE_SRC)
$(HC) -cpp $(INPLACE_EXTRA_FLAGS) $< -o $@
$(INPLACE_PROG): ghc-inplace.c
$(SED) -e "s@GHC_PATH@$(GHC_PATH)@g" -e "s@TOP_ABS@$(FPTOOLS_TOP_ABS)@g" < $< > $(INPLACE_SRC)
$(HC) -cpp $(INPLACE_EXTRA_FLAGS) $(INPLACE_SRC) -o $@
all :: $(INPLACE_PROG)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment