From efe6efeb8474c03a9ea6686155cc5dbce135c99d Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Tue, 27 Dec 2016 20:38:30 +0800 Subject: [PATCH] Capitalize --- windows_export.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/windows_export.bat b/windows_export.bat index 4ff67fba..ebed5106 100644 --- a/windows_export.bat +++ b/windows_export.bat @@ -1,16 +1,16 @@ @echo on -:: This script invokes the visual studio linker to construct a static library file that can be used outside of mingw. -:: The unicorn.def file that it references below is produced by the mingw compiler via a linker flag. +:: This script invokes the Visual Studio linker to construct a static library file that can be used outside of Mingw. +:: The unicorn.def file that it references below is produced by the Mingw compiler via a linker flag. :: The arch (x86 or x64) we are working on should be passed via the first argument to this script. :: Look up the Visual Studio install path via the registry :: http://stackoverflow.com/questions/445167/how-can-i-get-the-value-of-a-registry-key-from-within-a-batch-script -:: If anyone ever tells you that windows is a reasonable operating system, they are wrong +:: If anyone ever tells you that Windows is a reasonable operating system, they are wrong FOR /F "usebackq tokens=3*" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0" /v InstallDir`) DO ( set appdir=%%A %%B ) -:: Add the visual studio binaries to our path and run the linker +:: Add the Visual Studio binaries to our path and run the linker call "%appdir%..\..\VC\vcvarsall.bat" %1 call lib /machine:%1 /def:unicorn.def