Annotation of win32/gc/compile.cmd, revision 1.11
1.11 ! moko 1: @echo off
! 2: REM Builds gc.lib (static, /MT and /MTd) for Win32 with the VS2017 (v141) toolset: Debug\gc.lib and Release\gc.lib next to this script.
! 3: REM Run it from the unpacked gc source directory (see source.url); libatomic_ops must be unpacked to its "libatomic_ops" subdirectory.
! 4: REM NT_MAKEFILE next to this script is the original one from the gc sources patched with NT_MAKEFILE.diff.
! 5:
! 6: call "C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 -vcvars_ver=14.16 || exit /b 1
! 7:
! 8: copy /Y "%~dp0NT_MAKEFILE" NT_MAKEFILE || exit /b 1
! 9:
! 10: nmake -f NT_MAKEFILE clean
! 11: nmake -f NT_MAKEFILE cpu=i386 enable_static=1 gc.lib || exit /b 1
! 12: copy /Y gc.lib "%~dp0Debug\gc.lib" || exit /b 1
! 13:
! 14: nmake -f NT_MAKEFILE clean
! 15: nmake -f NT_MAKEFILE cpu=i386 enable_static=1 nodebug=1 gc.lib || exit /b 1
! 16: copy /Y gc.lib "%~dp0Release\gc.lib" || exit /b 1
! 17:
! 18: nmake -f NT_MAKEFILE clean
E-mail: