OSDN Git Service

LibDriver: Allow resource files to be archive members.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 15 Dec 2016 19:37:46 +0000 (19:37 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 15 Dec 2016 19:37:46 +0000 (19:37 +0000)
commitfa552fc861d4e10cdfd989f60212299b6ee64f38
treef61ec8eecd247d09b4d6649aad6cfb41cb5edd18
parent3e57787cab49ef9d3ea6d000dddf258a42d06405
LibDriver: Allow resource files to be archive members.

It seems pointless to add a resource to an archive because it won't have
any symbols to link against (and link.exe doesn't have an equivalent of
--whole-archive), but lib.exe allows it for some reason.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289859 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LibDriver/LibDriver.cpp
test/LibDriver/Inputs/resource.res [new file with mode: 0644]
test/LibDriver/invalid.test
test/LibDriver/resource.test [new file with mode: 0644]