Browse files

Fixed bug which prevented interrupting thread-sleep! and improved bui…

…ld scripts for Windows.
  • Loading branch information...
1 parent 9fe9d76 commit b9e13c3a27a951006365c7e2afe4136467437e4e @feeley feeley committed Jan 15, 2009
Showing with 295 additions and 51 deletions.
  1. +2 −2 include/stamp.h
  2. +7 −2 lib/_thread.scm
  3. +2 −1 lib/os.h
  4. +51 −1 lib/os_files.c
  5. +22 −5 lib/os_time.c
  6. +1 −1 misc/makefile.in
  7. +16 −13 misc/openwatcom.bat
  8. +162 −0 misc/vc2008.bat
  9. +16 −13 misc/vcexpress.bat
  10. +16 −13 misc/vctoolkit.bat
View
4 include/stamp.h
@@ -2,5 +2,5 @@
* Time stamp of last source code repository commit.
*/
-#define ___STAMP_YMD 20090113
-#define ___STAMP_HMS 191201
+#define ___STAMP_YMD 20090115
+#define ___STAMP_HMS 172827
View
9 lib/_thread.scm
@@ -1,6 +1,6 @@
;;;============================================================================
-;;; File: "_thread.scm", Time-stamp: <2008-12-12 14:12:38 feeley>
+;;; File: "_thread.scm", Time-stamp: <2009-01-15 12:26:10 feeley>
;;; Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved.
@@ -1113,7 +1113,7 @@
(##thread-int!
next-sleeper
#f
- ##thread-void-action!)
+ ##thread-check-interrupts!)
(let ((next-condvar
(macro-btq-deq-next run-queue)))
@@ -1245,6 +1245,11 @@
(let ((result (thunk)))
(##thread-end! (macro-current-thread) #f result))))
+(define-prim (##thread-check-interrupts!)
+ (##declare (interrupts-enabled))
+ (##declare (not inline))
+ (##thread-void-action!)) ;; interrupts will be checked here
+
(define-prim (##thread-void-action!)
(##declare (not interrupts-enabled))
(##void))
View
3 lib/os.h
@@ -1,4 +1,4 @@
-/* File: "os.h", Time-stamp: <2008-09-03 16:32:13 feeley> */
+/* File: "os.h", Time-stamp: <2009-01-14 12:18:16 feeley> */
/* Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved. */
@@ -228,6 +228,7 @@
#define USE_SetEnvironmentVariable
#define USE_WSAGetLastError
#define USE_GetConsoleWindow
+#define USE_GetModuleFileName
#define HAVE_CLOCK 1
#define HAVE_CREATETHREAD 1
View
52 lib/os_files.c
@@ -1,4 +1,4 @@
-/* File: "os_files.c", Time-stamp: <2008-12-17 00:20:01 feeley> */
+/* File: "os_files.c", Time-stamp: <2009-01-14 12:18:12 feeley> */
/* Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved. */
@@ -506,6 +506,55 @@ ___SCMOBJ ___os_path_gambcdir ___PVOID
___SCMOBJ e;
___SCMOBJ result;
+#ifdef USE_WIN32
+#ifndef ___GAMBCDIR
+#ifdef USE_GetModuleFileName
+ if (___setup_params.gambcdir == 0)
+ {
+ ___CHAR_TYPE(___PATH_CE_SELECT) temp[___PATH_MAX_LENGTH+1];
+ DWORD n;
+
+ n = GetModuleFileName (NULL, temp, ___PATH_MAX_LENGTH+1);
+ if (n > 0)
+ {
+ int cch;
+ ___UCS_2STRING gambcdir = 0;
+ /* remove filename */
+ *(_tcsrchr (temp, '\\')) = 0;
+ /* remove bin subdirectory, if present */
+ cch = _tcslen (temp);
+ if (cch > 7) /* e.g. C:\x\bin */
+ {
+ if (0 == _tcsicmp (temp+cch-4, _T("\\bin")))
+ {
+ cch -= 4;
+ *(temp+cch) = '\0';
+ }
+ }
+
+ gambcdir = ___CAST(___UCS_2STRING,
+ ___alloc_mem ((cch+1) * sizeof (___UCS_2)));
+
+ if (gambcdir == 0)
+ {
+ e = ___FIX(___HEAP_OVERFLOW_ERR);
+ return e;
+ }
+ else
+ {
+#ifdef _UNICODE
+ _tcscpy (gambcdir, temp);
+#else
+ mbstowcs (gambcdir, temp, cch);
+#endif
+ ___setup_params.gambcdir = gambcdir;
+ }
+ }
+ }
+#endif
+#endif
+#endif
+
if (___setup_params.gambcdir != 0)
{
if ((e = ___NONNULLUCS_2STRING_to_SCMOBJ
@@ -530,6 +579,7 @@ ___SCMOBJ ___os_path_gambcdir ___PVOID
#endif
#ifdef USE_WIN32
+/* Will only be used if GetModuleFileName path fails */
#define ___GAMBCDIR "c:\\Gambit-C\\" STRINGIFY2(___VERSION)
#endif
View
27 lib/os_time.c
@@ -1,4 +1,4 @@
-/* File: "os_time.c", Time-stamp: <2008-09-03 14:33:39 feeley> */
+/* File: "os_time.c", Time-stamp: <2009-01-15 09:09:04 feeley> */
/* Copyright (c) 1994-2008 by Marc Feeley, All Rights Reserved. */
@@ -447,6 +447,15 @@ ___time tim;)
#ifdef USE_select
+#ifdef ___TIMEVAL_NOT_LIMITED
+#define ___TIMEVAL_SEC_LIMIT 2147483647 /* in seconds = 68 years */
+#else
+/* Mac OS X gives an error when the seconds > 100000000 (3.2 years) */
+/* We'll be conservative in case other systems have limits */
+#define ___TIMEVAL_SEC_LIMIT 9999999 /* in seconds = 118 days */
+#endif
+
+
void ___absolute_time_to_nonnegative_timeval
___P((___time tim,
struct timeval **tv),
@@ -462,9 +471,9 @@ struct timeval **tv;)
if (___time_positive (tim))
{
#ifdef ___FLOAT_TIME_REPRESENTATION
- if (tim >= 2147483648.0) /* upper bound is 68 years! */
+ if (tim >= (___TIMEVAL_SEC_LIMIT+1.0))
{
- t->tv_sec = 2147483647;
+ t->tv_sec = ___TIMEVAL_SEC_LIMIT;
t->tv_usec = 999999;
}
else
@@ -475,8 +484,16 @@ struct timeval **tv;)
#endif
#ifdef ___INT_TIME_REPRESENTATION
- t->tv_sec = tim.secs;
- t->tv_usec = tim.nsecs / 1000;
+ if (tim.secs > ___TIMEVAL_SEC_LIMIT)
+ {
+ t->tv_sec = ___TIMEVAL_SEC_LIMIT;
+ t->tv_usec = 999999;
+ }
+ else
+ {
+ t->tv_sec = tim.secs;
+ t->tv_usec = tim.nsecs / 1000;
+ }
#endif
}
else
View
2 misc/makefile.in
@@ -65,7 +65,7 @@ mandir = @mandir@
.SUFFIXES:
RCFILES = makefile.in README bench.tgz \
-openwatcom.bat vcexpress.bat vctoolkit.bat vstudio.zip \
+openwatcom.bat vcexpress.bat vctoolkit.bat vc2008.bat vstudio.zip \
proj_msc.zip conf_msc conf_msc.sed conf_mpp.sed \
proj_wat.zip conf_wat conf_wat.sed conf_wpp.sed conf_win.sed \
proj_bor.zip conf_bor conf_bor.sed conf_bpp.sed \
View
29 misc/openwatcom.bat
@@ -13,17 +13,16 @@
@SET EDPATH=%WATCOM%\EDDAT
@SET INCLUDE=%WATCOM%\H;%WATCOM%\H\NT
-@IF "%1%" == "" (
-SET GAMBCDIR="C:/Gambit-C/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././."
-) ELSE (
-SET GAMBCDIR="%1%"
-)
-
@rem We can't use -D___SINGLE_HOST for all Gambit generated C files
@rem because the C compiler runs out of memory while compiling _num.c
@rem and _io.c .
-set COMP_GEN=wcc386 -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -I..\include -D___GAMBCDIR=%GAMBCDIR% -D___SYS_TYPE_CPU="i686" -D___SYS_TYPE_VENDOR="pc" -D___SYS_TYPE_OS="openwatcom" -D___IMPORTED_ID_SUFFIX="_"
+set COMP_GEN=wcc386 -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -I..\include -D___SYS_TYPE_CPU="i686" -D___SYS_TYPE_VENDOR="pc" -D___SYS_TYPE_OS="openwatcom" -D___IMPORTED_ID_SUFFIX="_"
+
+if not "%1%" == "" (
+set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
+)
+
set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
@@ -111,15 +110,19 @@ cd bin
echo @echo off> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
-echo rem GSC_CC_O_GAMBCDIR>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
-echo rem echo GSC_CC_O_GAMBCDIR = %%GSC_CC_O_GAMBCDIR%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
@@ -134,22 +137,22 @@ echo exit 1 >> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_gcc.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_wcl386.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_cl.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_build_time_c_compiler>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :end>> gsc-cc-o.bat
View
162 misc/vc2008.bat
@@ -0,0 +1,162 @@
+@rem File: "vc2008.cmd"
+@rem
+@rem This is a batch file to compile Gambit with the Microsoft Visual
+@rem C++ 2008 Professional Edition. It probably will work with the
+@rem Express Edition as well.
+@rem
+@rem TODO: turn this into a makefile
+
+@rem Setup environment variables
+setlocal
+
+@call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
+
+@rem We can't use -D___SINGLE_HOST for all Gambit generated C files
+@rem because the C compiler runs out of memory while compiling _num.c
+@rem and _io.c .
+
+set COMP_GEN=cl -nologo -Oityb1 -Zi -GS -RTC1 -MT -D_CRT_SECURE_NO_DEPRECATE -c -I..\include -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
+
+if not "%1%" == "" (
+set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
+)
+
+set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
+set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
+set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
+set COMP_LIB_PR=%COMP_LIB_PR_MH% -D___SINGLE_HOST
+set COMP_APP=%COMP_GEN% -D___SINGLE_HOST
+
+@rem We can't rely on sed being available so we generate gambit.h
+@rem from gambit.h.in by prefixing it with the needed declarations.
+
+echo #ifndef ___VOIDSTAR_WIDTH > include\gambit.h
+echo #define ___VOIDSTAR_WIDTH ___LONG_WIDTH >> include\gambit.h
+echo #endif >> include\gambit.h
+echo #ifndef ___MAX_CHR >> include\gambit.h
+echo #define ___MAX_CHR 0x10ffff >> include\gambit.h
+echo #endif >> include\gambit.h
+type include\gambit.h.in >> include\gambit.h
+
+cd lib
+
+%COMP_LIB_PR% main.c
+%COMP_LIB_PR% setup.c
+%COMP_LIB_PR% mem.c
+%COMP_LIB_PR% os.c
+%COMP_LIB_PR% os_base.c
+%COMP_LIB_PR% os_time.c
+%COMP_LIB_PR% os_shell.c
+%COMP_LIB_PR% os_files.c
+%COMP_LIB_PR% os_dyn.c
+%COMP_LIB_PR% os_tty.c
+%COMP_LIB_PR% os_io.c
+%COMP_LIB_PR% c_intf.c
+
+%COMP_LIB_PR% _kernel.c
+%COMP_LIB_PR% _system.c
+%COMP_LIB_PR_MH% _num.c
+%COMP_LIB_PR% _std.c
+%COMP_LIB_PR% _eval.c
+%COMP_LIB_PR_MH% _io.c
+%COMP_LIB_PR% _nonstd.c
+%COMP_LIB_PR% _thread.c
+%COMP_LIB_PR% _repl.c
+
+%COMP_LIB_PR% _gambc.c
+
+lib -out:libgambc.lib main.obj setup.obj mem.obj os.obj os_base.obj os_time.obj os_shell.obj os_files.obj os_dyn.obj os_tty.obj os_io.obj c_intf.obj _kernel.obj _system.obj _num.obj _std.obj _eval.obj _io.obj _nonstd.obj _thread.obj _repl.obj _gambc.obj
+
+cd ..
+
+cd gsi
+
+%COMP_LIB% _gsilib.c
+%COMP_LIB% _gambcgsi.c
+%COMP_APP% _gsi.c
+%COMP_APP% _gsi_.c
+
+cl -Fegsi.exe ..\lib\libgambc.lib _gsilib.obj _gambcgsi.obj _gsi.obj _gsi_.obj Kernel32.Lib User32.Lib Gdi32.Lib WS2_32.Lib
+
+cd ..
+
+cd gsc
+
+%COMP_LIB% _host.c
+%COMP_LIB% _utils.c
+%COMP_LIB% _source.c
+%COMP_LIB% _parms.c
+%COMP_LIB% _env.c
+%COMP_LIB% _ptree1.c
+%COMP_LIB% _ptree2.c
+%COMP_LIB% _gvm.c
+%COMP_LIB% _back.c
+%COMP_LIB% _front.c
+%COMP_LIB% _prims.c
+%COMP_LIB% _t-c-1.c
+%COMP_LIB% _t-c-2.c
+%COMP_LIB% _t-c-3.c
+%COMP_LIB% _gsclib.c
+%COMP_LIB% _gambcgsc.c
+%COMP_APP% _gsc.c
+%COMP_APP% _gsc_.c
+
+cl -Fegsc.exe ..\lib\libgambc.lib _host.obj _utils.obj _source.obj _parms.obj _env.obj _ptree1.obj _ptree2.obj _gvm.obj _back.obj _front.obj _prims.obj _t-c-1.obj _t-c-2.obj _t-c-3.obj _gsclib.obj _gambcgsc.obj _gsc.obj _gsc_.obj Kernel32.Lib User32.Lib Gdi32.Lib WS2_32.Lib
+
+cd ..
+
+cd bin
+
+echo @echo off> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
+echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
+echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
+echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
+echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
+echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
+echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_CC_OPTIONS = %%GSC_CC_O_CC_OPTIONS%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_LD_OPTIONS_PRELUDE = %%GSC_CC_O_LD_OPTIONS_PRELUDE%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_LD_OPTIONS = %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo for %%%%f in (cl.exe gcc.exe wcl386.exe) do if not "%%%%~$PATH:f" == "" goto use_%%%%%%f>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo echo gcc.exe, wcl386.exe and cl.exe were not found in the PATH. Make sure MinGW, OpenWatcom or Visual C++ Express is installed.>> gsc-cc-o.bat
+echo exit 1 >> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo :use_gcc.exe>> gsc-cc-o.bat
+echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo goto end>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo :use_wcl386.exe>> gsc-cc-o.bat
+echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
+echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo goto end>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo :use_cl.exe>> gsc-cc-o.bat
+echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
+echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo goto end>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo :use_build_time_c_compiler>> gsc-cc-o.bat
+echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo goto end>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo :end>> gsc-cc-o.bat
+echo.>> gsc-cc-o.bat
+echo exit>> gsc-cc-o.bat
+
+cd ..
View
29 misc/vcexpress.bat
@@ -13,17 +13,16 @@
@call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
@call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd"
-@IF "%1%" == "" (
-SET GAMBCDIR="C:/Gambit-C/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././."
-) ELSE (
-SET GAMBCDIR="%1%"
-)
-
@rem We can't use -D___SINGLE_HOST for all Gambit generated C files
@rem because the C compiler runs out of memory while compiling _num.c
@rem and _io.c .
-set COMP_GEN=cl -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -c -I..\include -D___GAMBCDIR=\"%GAMBCDIR%\" -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
+set COMP_GEN=cl -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -c -I..\include -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
+
+if not "%1%" == "" (
+set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
+)
+
set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
@@ -113,15 +112,19 @@ cd bin
echo @echo off> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
-echo rem GSC_CC_O_GAMBCDIR>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
-echo rem echo GSC_CC_O_GAMBCDIR = %%GSC_CC_O_GAMBCDIR%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
@@ -136,22 +139,22 @@ echo exit 1 >> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_gcc.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_wcl386.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_cl.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_build_time_c_compiler>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :end>> gsc-cc-o.bat
View
29 misc/vctoolkit.bat
@@ -14,17 +14,16 @@
@call "C:\Program Files\Microsoft Visual C++ Toolkit 2003\vcvars32.bat"
@call "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd"
-@IF "%1%" == "" (
-SET GAMBCDIR="C:/Gambit-C/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././."
-) ELSE (
-SET GAMBCDIR="%1%"
-)
-
@rem We can't use -D___SINGLE_HOST for all Gambit generated C files
@rem because the C compiler runs out of memory while compiling _num.c
@rem and _io.c .
-set COMP_GEN=cl -nologo -Oityb1 -G5s -MT -c -I..\include -D___GAMBCDIR=\"%GAMBCDIR%\" -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
+set COMP_GEN=cl -nologo -Oityb1 -G5s -MT -c -I..\include -D___SYS_TYPE_CPU=\"i686\" -D___SYS_TYPE_VENDOR=\"pc\" -D___SYS_TYPE_OS=\"visualc\"
+
+if not "%1%" == "" (
+set COMP_GEN=%COMP_GEN% -D___GAMBCDIR=\"%1%\"
+)
+
set COMP_LIB_MH=%COMP_GEN% -D___LIBRARY
set COMP_LIB_PR_MH=%COMP_LIB_MH% -D___PRIMAL
set COMP_LIB=%COMP_LIB_MH% -D___SINGLE_HOST
@@ -114,15 +113,19 @@ cd bin
echo @echo off> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo rem Script parameters are passed in the following environment variables:>> gsc-cc-o.bat
-echo rem GSC_CC_O_GAMBCDIR>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_BIN>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_INCLUDE>> gsc-cc-o.bat
+echo rem GSC_CC_O_GAMBCDIR_LIB>> gsc-cc-o.bat
echo rem GSC_CC_O_OBJ_FILENAME>> gsc-cc-o.bat
echo rem GSC_CC_O_C_FILENAME_DIR>> gsc-cc-o.bat
echo rem GSC_CC_O_C_FILENAME_BASE>> gsc-cc-o.bat
echo rem GSC_CC_O_CC_OPTIONS>> gsc-cc-o.bat
echo rem GSC_CC_O_LD_OPTIONS_PRELUDE>> gsc-cc-o.bat
echo rem GSC_CC_O_LD_OPTIONS>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
-echo rem echo GSC_CC_O_GAMBCDIR = %%GSC_CC_O_GAMBCDIR%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_BIN = %%GSC_CC_O_GAMBCDIR_BIN%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_INCLUDE = %%GSC_CC_O_GAMBCDIR_INCLUDE%%>> gsc-cc-o.bat
+echo rem echo GSC_CC_O_GAMBCDIR_LIB = %%GSC_CC_O_GAMBCDIR_LIB%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_OBJ_FILENAME = %%GSC_CC_O_OBJ_FILENAME%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_C_FILENAME_DIR = %%GSC_CC_O_C_FILENAME_DIR%%>> gsc-cc-o.bat
echo rem echo GSC_CC_O_C_FILENAME_BASE = %%GSC_CC_O_C_FILENAME_BASE%%>> gsc-cc-o.bat
@@ -137,22 +140,22 @@ echo exit 1 >> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_gcc.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_wcl386.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo wcl386.exe -w0 -zp4 -zq -obetir -bm -3r -bt=nt -mf -bd -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -l=nt_dll -fe="%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_cl.exe>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo cl.exe -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE -LD -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -Fe"%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :use_build_time_c_compiler>> gsc-cc-o.bat
echo cd "%GSC_CC_O_C_FILENAME_DIR%">> gsc-cc-o.bat
-echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR%%include" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
+echo gcc.exe -mno-cygwin -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp -shared -I"%%GSC_CC_O_GAMBCDIR_INCLUDE%%" -D___DYNAMIC -D___SINGLE_HOST -o "%%GSC_CC_O_OBJ_FILENAME%%" %%GSC_CC_O_CC_OPTIONS%% %%GSC_CC_O_LD_OPTIONS_PRELUDE%% "%%GSC_CC_O_C_FILENAME_BASE%%" %%GSC_CC_O_LD_OPTIONS%%>> gsc-cc-o.bat
echo goto end>> gsc-cc-o.bat
echo.>> gsc-cc-o.bat
echo :end>> gsc-cc-o.bat

0 comments on commit b9e13c3

Please sign in to comment.