 
            
            
            
            
                7 Mar
                
                    2018
                
            
            
                7 Mar
                
                '18
                
            
            
            
        
    
                4:31 a.m.
            
        On Wed, Mar 7, 2018 at 8:10 AM, Phyx 
In my experience to get a 32 bit build you need to install the full 32bit msys2. Not just the 32bit compiler in the 64 bit msys2 (two installs can co-exist).
That's also my experience on appveyor (but I'm not compiling GHC itself): https://github.com/LambdaHack/LambdaHack/blob/master/appveyor.yml#L50 Both versions of msys2 are present and I need to set path to the 32 version to compile for 32bit. In this way I'm able to generate both 64bit and 32bit binaries in a single appveyor run.