From e8cd9ca3a03420d8894c38b53faaf7da5e6ab55d Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 22 Jun 2017 21:12:59 -0400 Subject: [PATCH] checking the platform in buildsuper --- buildsuper.bat | 2 +- buildsuper_x86.bat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildsuper.bat b/buildsuper.bat index 1949f1e1..9de56f3d 100644 --- a/buildsuper.bat +++ b/buildsuper.bat @@ -6,7 +6,7 @@ REM default files no matter where you store your code. REM And no matter how you call buildsuper.bat. SET CODE_HOME=%~dp0 -IF NOT DEFINED LIB (call "%CODE_HOME%\\build_scripts\\setup_cl_x64.bat") +IF NOT "%Platform%" == "X64" (call "%CODE_HOME%\\build_scripts\\setup_cl_x64.bat") SET SRC=%1 if "%SRC%" == "" SET SRC=4coder_default_bindings.cpp diff --git a/buildsuper_x86.bat b/buildsuper_x86.bat index 68ffe664..0094d012 100644 --- a/buildsuper_x86.bat +++ b/buildsuper_x86.bat @@ -6,10 +6,10 @@ REM default files no matter where you store your code. REM And no matter how you call buildsuper.bat. SET CODE_HOME=%~dp0 -IF NOT DEFINED LIB (call "%CODE_HOME%\\build_scripts\\setup_cl_x86.bat") +IF NOT "%Platform%" == "X86" (call "%CODE_HOME%\\build_scripts\\setup_cl_x86.bat") SET SRC=%1 -if "%SRC%" == "" SET SRC=4coder_default_bindings.cpp +if "%SRC%" == "" (SET SRC=4coder_default_bindings.cpp) SET OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4457 /WX SET OPTS=%OPTS% /GR- /nologo /FC