On Fri, Mar 4, 2011 at 13:48, Diego Novillo <dnovi...@google.com> wrote: > > When running tests in a toolchain configure --with-build-sysroot, we > need to execute the testsuite pointing every compiler invocation to > the build sysroot (which in our case is different than the sysroot > that the compiler is configured with). > > This patch adds a new global variable TEST_SYSROOT that takes its > value from SYSROOT_CFLAGS_FOR_TARGET. > > Mike, Rainer, is this approach OK? I had started by setting > TOOL_OPTIONS, but that confused libgloss.exp when it tried to compute > multilibs (get_multilibs). The presence of the argument > --sysroot=.... causes get_multilibs to call gcc with > --print-multilibs, which returns the string '.'. This causes massive > failures on all the tests that run with non-default multilibs. > > I'm applying this on google/integration. OK for 4.7? (the patch for > trunk would be slightly different, but the idea is the same).
I forgot to add. Simon, this still shows up some failures in google/integration, but these failures are the same we have in trunk. For our builds, we have been XFAILing these failures, right? Do you want me to mark them XFAIL to avoid problems with the auto builds? Diego.