On Tue, 14 Jan 2020, Chung-Lin Tang wrote:

> Can you test if the attached patch works for you? The patch exports the build 
> sysroot
> setting from the toplevel to target library subdirs, and adds the --sysroot= 
> option
> when doing build-tree testing (I assume that blddir != "" test is sufficient 
> from the
> surrounding comments)

 Thank you for your proposal; however I'm a little concerned as to 
continuing using the current compiler detect logic for testing uninstalled 
GCC as it may incorrectly pick a compiler already present on the system 
rather than the newly built one.  I think the way it's done in gcc/ by 
using the configured $CC, etc. is the correct one and we should strive to 
replicate it across top-level libraries as well.

 I'll give your proposal a shot and I'm lucky enough to have a build 
configuration where I can have no compiler preinstalled, so at least I can 
check if testing with your change applied correctly picks the newly built 
uninstalled compiler in that case.

  Maciej

Reply via email to