[PATCH] Check if linker can find crtbegin.o and crtend.o on Illumos
Dmitri Gribenko
gribozavr at gmail.com
Wed Mar 20 10:17:43 PDT 2013
On Wed, Mar 20, 2013 at 7:09 PM, evgeny <illumsoft.org at gmail.com> wrote:
> This patch has a check (test/Driver/illumos.c) if clang can find gcc's object
> files and libraries on Illumos (OpenIndiana Distribution build 151a7)
Evgeny,
Clang driver tests should be portable across operating systems. That
is, Illumos tests should not only pass, but actually test the correct
thing when they are being run on FreeBSD or Windows. There are
directories that simulate a sysroot for a particular system. Take a
look at llvm/tools/clang/test/Driver/Inputs directory. You should add
an Illumos directory there that simulates that particular gcc
installation.
There's also a way to test driver's results directly. You can use
-### option to output the commands that the driver will run. Please
take a look at test/Driver/linux-ld.c.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list