[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: configure: Detect MinGW-w64 Clang cross toolchain
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2015-12-30 10:06:47
Message-ID: 87bn98i72g.fsf () winehq ! org
[Download RAW message or body]

André Hentschel <nerv@dawncrow.de> writes:

> Am 30.12.2015 um 10:09 schrieb Alexandre Julliard:
> > André Hentschel <nerv@dawncrow.de> writes:
> > 
> > > @@ -171,17 +171,19 @@ LIBS="$ac_wine_check_funcs_save_LIBS"])
> > > 
> > > dnl **** Check for a mingw program, trying the various mingw prefixes ****
> > > dnl
> > > -dnl Usage: WINE_CHECK_MINGW_PROG(variable,prog,[value-if-not-found],[path])
> > > +dnl Usage: WINE_CHECK_MINGW_PROG(variable,progs,[value-if-not-found],[path])
> > > dnl
> > > AC_DEFUN([WINE_CHECK_MINGW_PROG],
> > > [case "$host_cpu" in
> > > i[[3456789]]86*)
> > > ac_prefix_list="m4_foreach([ac_wine_prefix],[w64-mingw32, pc-mingw32, \
> > >                 mingw32msvc, mingw32],
> > > -                        \
> > > m4_foreach([ac_wine_cpu],[i686,i586,i486,i386],[ac_wine_cpu-ac_wine_prefix-$2 \
> > > ])) +                        m4_foreach([ac_wine_cpu],[i686,i586,i486,i386],
> > > +                        \
> > > m4_foreach([ac_wine_prog],[$2],[ac_wine_cpu-ac_wine_prefix-ac_wine_prog ]))) \
> > > mingw32-$2" ;;
> > 
> > Do we need to duplicate all the names?  Or would it be sufficient to
> > check only the w64-mingw one?
> > 
> 
> It's possible to use clang with the classic MinGW.org
> But if you still want to, I'd also reduce it to i686-w64-mingw32-clang and \
> x86_64-w64-mingw32-clang, because I think these are the most likely configurations. \
> But then I'd avoid touching prog and would just append those to the list if that's \
> what you want. (Maybe we should drop the prog parameter all together?)

I'd rather not check for a million different combinations if they don't
exist in the wild. We can still keep the cpu variants check though.
If you want to get rid of the prog parameter, that's fine.

-- 
Alexandre Julliard
julliard@winehq.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic