[Driver] Explicitly request platform rtlib in the Driver pic test
authorPetr Hosek <phosek@chromium.org>
Wed, 1 May 2019 16:52:45 +0000 (16:52 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 1 May 2019 16:52:45 +0000 (16:52 +0000)
commitfa78ad57edfd2fec2882c0ca1dbd7eec34051844
treebea58c49e8dea961ef787ae6367700062571d115
parent65dc24293f9386d2d98c3b270bd2ed6f198210dc
[Driver] Explicitly request platform rtlib in the Driver pic test

This test checks whether crtbegin.o and crtend.o appear on the link
line, but names of these files may be affected by the choice of the
rtlib, specifically when compiler-rt is used as the default rtlib
the names will be clang_rt.crtbegin.o and clang_rt.crtend.o instead
of crtbeginS.o and crtendS.o. To avoid the test failure, explicitly
request to use the platform rtlib.

Differential Revision: https://reviews.llvm.org/D61383

llvm-svn: 359706
clang/test/Driver/pic.c