[PATCH] Make Clang::Driver/linker-opts.c safe on a bare-metal compiler

Richard Barton richard.barton at arm.com
Wed Dec 11 07:16:47 PST 2013


Hello

The Clang test Driver/linker-opts.c tests that the LIBRARY_PATH environment
variable works as expected. This functionality is only available if Clang is
configured as a linux toolchain, if clang is built as a bare-metal toolchain
then LIBRARY_PATH is not expected to work.

The attached patch clears this up by adding -target arm-linux-gnueabi to the
original test. I also add a negative test to check that the bare-metal case
is also correct.

Addressing to Bill as he was the original creator of the test, but any
review welcome.

Thanks.
Rich

-------------- next part --------------
A non-text attachment was scrubbed...
Name: linker-opts.patch.patch
Type: application/octet-stream
Size: 711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131211/53a9d7d4/attachment.obj>


More information about the cfe-commits mailing list