Linker error when compiling GODOT under Windows 10x64 with scons and mingw
I tried to compile godot-master branch under Windows 10x64, 64 bit CPU AMD A8 6660K with scons and gcc(mingw), but get this linking error:
bC:/Users/Admin/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `platform\windows\godot_res.windows.opt.tools.64.o' is incompatible with i386:x86-64 output\r\ncollect2.exe: error: ld returned 1 exit status\n
scons: *** [bin\godot.windows.opt.tools.64.exe] Error 1
scons: building terminated because of errors.
I installed scoop, gcc and python as described in docs:
iwr -useb get.scoop.sh | iex
scoop install gcc python scons yasm make
scons platform=windows target=release_debug
and many options, but get the same error.
Can anyone help with this issue?