1. xHarbour provides a make_vc.bat file that calls Microsoft
vcvarsall.bat. Here is the line from make_vc.bat:

IF EXIST "%CC_DIR%"\vcvarsall.bat CALL "%CC_DIR%"\vcvarsall.bat

2. If we review Microsoft vcvarsall.bat then we see that it accepts a
first parameter:

if /i %1 == x86       goto x86
if /i %1 == amd64     goto amd64
if /i %1 == x64       goto amd64
if /i %1 == ia64      goto ia64
if /i %1 == x86_amd64 goto x86_amd64
if /i %1 == x86_ia64  goto x86_ia64

3. So in order to be able to build any of those platforms then
make_vc.bat should be modified this way:
IF EXIST "%CC_DIR%"\vcvarsall.bat CALL "%CC_DIR%"\vcvarsall.bat %1
and also here:
if "%1"==""        goto BUILD
if "%1"=="amd64" goto BUILD
... all of them
if "%1"=="x86_ia64" goto BUILD

It may be good to share this in case some other users look for the
same.

Antonio Linares
www.fivetechsoft.com

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to