nim 2.2.2 配置32位gcc
# Configuration for the GNU C/C++ compiler: @if windows: #gcc.path = r"$nim\dist\mingw\bin" i386.windows.gcc.path = r"F:\program files\nim-1.6.6_x64\nim-1.6.6\dist\mingw32\bin" #gcc.path = r"E:\总编程\nim-1.6.6_x64\nim-1.6.6\dist\mingw64\bin" i386.windows.gcc.exe = "i686-w64-mingw32-gcc" i386.windows.gcc.linkerexe = "i686-w64-mingw32-gcc" i386.windows.gcc.cpp.exe = "i686-w64-mingw32-g++" i386.windows.gcc.cpp.linkerexe = "i686-w64-mingw32-g++" @if gcc: gcc.options.linker %= "-Wl,-Bstatic -lpthread" @end @if tcc: tlsEmulation:on @end @end
就里面i386的代码复制