Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/distro.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Su <howard0su@gmail.com>2016-10-27 10:01:25 +0300
committerHoward Su <howard0su@gmail.com>2016-10-27 18:10:21 +0300
commit70fb3a68d1f883c0491154a8b17971800915d5a5 (patch)
treed6fd8c6f7aa17b6fcf77c225d1204c1e8b95af8c
parent6be781e3c9fe2f9145430b703bcea893b1ca4c18 (diff)
Generate active torch script
-rw-r--r--build_windows.bat11
1 files changed, 10 insertions, 1 deletions
diff --git a/build_windows.bat b/build_windows.bat
index 1db9a7d..0b03eb4 100644
--- a/build_windows.bat
+++ b/build_windows.bat
@@ -52,7 +52,7 @@ set "PREFIX=%BASE%\install"
set "CMAKE_LIBRARY_PATH=%BASE%/include:%BASE%/lib:%CMAKE_LIBRARY_PATH%"
set "CMAKE_PREFIX_PATH=%PREFIX%"
-rem "%GIT%" submodule update --init --recursive
+"%GIT%" submodule update --init --recursive
echo BASE: %BASE%
@@ -136,12 +136,21 @@ cd %THIS_DIR%pkg\optim
cmd /c luarocks make optim-1.0.5-0.rockspec
if errorlevel 1 exit /B 1
+(
+echo set "LUA_CPATH=%BASE%/install/?.DLL;%BASE%/install/LIB/?.DLL;?.DLL"
+echo set "LUA_DEV=%BASE%/install"
+echo set "LUA_PATH=;;%BASE%/install/?;%BASE%/install/?.lua;%BASE%/install/lua/?;%BASE%/install/lua/?.lua;%BASE%/install/lua/?/init.lua
+echo set "PATH=%PATH%;%BASE%\install;%BASE%\install\bin"
+) > %BASE%\install\torch-active.bat
+
+
luajit -e "require('torch')"
if errorlevel 1 exit /B 1
luajit -e "require('torch'); torch.test()"
if errorlevel 1 exit /B 1
+
goto :eof
:error