Update MinGW to default to better exceptions

sjlj is an old style of exception handling that's slower. It also has a
problem linking against the Ruby DLL. Change the default to dwarf/seh
depending on architecture.

Also add params so the exception handling and thread library can be
selected when installing MinGW.
That's just the way the packages come, and was a problem in the previous
installer too.

On Mon, Nov 24, 2014 at 9:40 AM, Rob Reynolds <notifications@github.com>
wrote:

> In manual/mingw/tools/chocolateyInstall.ps1:
>
> >
> > -  $file = Join-Path $tempDir "$($packageName).7z"
> > -  Get-ChocolateyWebFile "$packageName" "$file" "$url" "$url64"
> > -  Write-Host "Extracting `'$file`' to `'$installDir`'"
> > -  if (![System.IO.Directory]::Exists("$installDir\temp")) {[System.IO.Directory]::CreateDirectory("$installDir\temp")}
> > -  Start-Process "7za" -ArgumentList "x -o`"$installDir\temp`" -y `"$file`"" -Wait
> > +if (Get-ProcessorBits 64) {
> > +  $mingwDir = 'mingw64'
> > +} else {
> > +  $mingwDir = 'mingw32'
> > +}
>
> Except for here with -x86. It would install the x86 version into mingw64
> folder. I don't think you can detect that it was passed either. :(
>
> Any reason to have different folders?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ferventcoder/chocolatey-packages/pull/39/files#r20806964>
> .
>