[LLVMdev] Representing the dependencies of a bitcode module
Gordon Henriksen
gordonhenriksen at mac.com
Tue Apr 29 06:04:51 PDT 2008
On 2008-04-29, at 00:11, Gordon Henriksen wrote:
> For linkage command lines, lazily updating 'response files' (sorry,
> Windows terminology...) can provide a complete solution. Something
> like:
>
> LINK_CMD := $(LINKER) $(LINK_INPUTS)
>
> all: cmds
>
> link_cmd:
> if [ "`cat $(INT_DIR)/link_cmd`" != "$(LINK_CMD)" ]; then echo "$
> (LINK_CMD)" > link_cmd; fi
>
> output.so: link_cmd $(LINK_INPUTS)
> $(LINK_CMD)
Whoops, I didn't finish this example. Should be:
LINK_CMD := $(LINKER) $(LINK_INPUTS)
all: cmds output.so
cmds:
[ "`cat $(INT_DIR)/link_cmd`" = "$(LINK_CMD)" ] || echo "$(LINK_CMD)"
> link_cmd
output.so: link_cmd $(LINK_INPUTS)
$(LINK_CMD)
— Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080429/4787d33e/attachment.html>
More information about the llvm-dev
mailing list