[driver] Older versions of ld expect '-L<dir>' not '-L <dir>'. In Xcode4 and
authorChad Rosier <mcrosier@apple.com>
Tue, 30 Oct 2012 21:42:09 +0000 (21:42 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 30 Oct 2012 21:42:09 +0000 (21:42 +0000)
commit616e8a5c0b9e473ab1819a5657d6814f49a81bd4
treed70c762c3f92452ff1b14c1787db3bba9a4f3470
parent206cf6487c0759dd5e1c943690b830543d4d415a
[driver] Older versions of ld expect '-L<dir>' not '-L <dir>'.  In Xcode4 and
later, '-L <dir>' is allowed, but rewrite these in the driver as '-L<dir>' to
maintain backward compatibility.  The same is true for the -I option.
rdar://12366753

llvm-svn: 167054
clang/lib/Driver/Tools.cpp
clang/test/Driver/cpath.c
clang/test/Driver/linker-opts.c