<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">True, looks like even Xcode 13.1 RC is still able to build for i386 with the 10.13 SDK. For CrossOver though we build an i386 .app, which requires xcodebuild, etc.</div><div class="">I would also prefer to stick with the toolchain that Apple tested/supported for i386 (and that we’ve already been using).</div><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 21, 2021, at 2:27 PM, Dean Greer <<a href="mailto:gcenx83@gmail.com" class="">gcenx83@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">I’m still not getting why your using Xcode9 in this manner when. XCode10/11/12 compiled 32Bit wine without issue as long as SDKROOT is set to MacOSX10.13.SDK</div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 21, 2021 at 5:22 PM Brendan Shanks <<a href="mailto:bshanks@codeweavers.com" class="">bshanks@codeweavers.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><br class="">
> On Oct 21, 2021, at 12:35 PM, Alexandre Julliard <<a href="mailto:julliard@winehq.org" target="_blank" class="">julliard@winehq.org</a>> wrote:<br class="">
> <br class="">
> Brendan Shanks <<a href="mailto:bshanks@codeweavers.com" target="_blank" class="">bshanks@codeweavers.com</a>> writes:<br class="">
> <br class="">
>> With the toolchain working, building i386 with it is now a cross-compile.<br class="">
>> Apple does not prefix the commands with the host triplet though<br class="">
>> (i.e. 'i386-apple-darwin'), which Wine seems to expect for cross-compiling.<br class="">
>> <br class="">
>> Specifically, configure adds "-b <host triplet>" to TARGETFLAGS, causing<br class="">
>> winebuild to search for commands like ld and nm prefixed with that host<br class="">
>> triplet, which fails.<br class="">
>> <br class="">
>> This is a patch which only sets that TARGETFLAGS when the host triplet<br class="">
>> appears in $CC. I'm open to a different approach to fixing this though.<br class="">
> <br class="">
> It seems to me that this should be done the same way we do it on Linux:<br class="">
> if we are on an x86_64 host and --enable-win64 is not specified, we add<br class="">
> -m32 and set host_cpu=i386. Passing --host is not required in this<br class="">
> configuration.<br class="">
<br class="">
Thanks Alexandre, that does work correctly and without any changes needed. This patch can be disregarded.<br class="">
<br class="">
For a WOW64 build, running configure like this works:<br class="">
<br class="">
DEVELOPER_DIR="/Applications/Xcode9.app" \<br class="">
SDKROOT="/Applications/Xcode9.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" \<br class="">
../configure --with-wine64=<path to wine64 build><br class="">
<br class="">
Or for a standalone 32-bit build:<br class="">
<br class="">
DEVELOPER_DIR="/Applications/Xcode9.app" \<br class="">
SDKROOT="/Applications/Xcode9.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" \<br class="">
../configure --with-wine-tools=<path to wine64 build><br class="">
<br class="">
Brendan<br class="">
<br class="">
<br class="">
</blockquote></div></div>
</div></blockquote></div><br class=""></body></html>