r253898 - Driver: fallback to the location of clang if no sysroot,
Ismail Donmez via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 02:53:36 PST 2015
On Tue, Nov 24, 2015 at 12:43 PM, Martell Malone
<martellmalone at gmail.com> wrote:
>> This breaks mingw support on openSUSE :
> My first question is why on SUSE is clang installed in /opt while mingw-w64
> in /usr?
Well this is a custom clang it can be anywhere. Official one is in /usr.
>> x86_64-w64-mingw32-gcc is in $PATH, and this used to work fine before
>> this commit.
> It doesn't look for gcc on linux that is a windows host only thing.
> It didn't do that before this commit also.
> SUSE was just lucky because we hard coded /usr as the base path.
This is not a SUSE only thing, afaik Fedora has the same setup.
> I don't like the idea of hard coding for just a single distro so I think
> We could optionally do some search for "x86_64-w64-mingw32-gcc" on non
> windows hosts
> Just like we do for "gcc" on windows hosts.
> This should fix SUSE while maintaining the new more reasonable search
Why not hardcode /usr for Linux hosts?
More information about the cfe-commits