On 09/17/2014 06:39 PM, Ilya Verbin wrote:
Yeah, I got that all these prefixes are not working with modified
DESTDIR.  I’ll fix mkoffload.

2014-09-17 20:30 GMT+04:00 Bernd Schmidt <ber...@codesourcery.com>:
That's also a solved problem in nvptx mkoffload - you do need to unset these
environment variables when invoking the target compiler. I've posted the
source a few times but here it is again.

I see there:
   unsetenv ("GCC_EXEC_PREFIX");
   unsetenv ("COMPILER_PATH");
   unsetenv ("LIBRARY_PATH");

Or do you mean, that there is no need to set them to the new values
before invoking the target compiler?

Exactly - you need to unset them before calling x86-accel-nvptx-gcc, but that driver has its own logic to find its binaries, so nothing else is necessary. You need to know where to find x86-accel-nvptx-gcc, and that can be done by examining COMPILER_PATH.


Bernd

Reply via email to