--- a/ParserFlags.st Wed Feb 20 17:04:14 2013 +0100
+++ b/ParserFlags.st Thu Feb 21 15:03:42 2013 +0100
@@ -90,7 +90,8 @@
AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable
LineNumberInfo LibDirectory VCTop SDKTop BCCTop ForcedCompiler
DefineForBorlandC DefineForVisualC DefineForMSVER DefineForMSC
- DefineForGNUC PerMethodFlags AllowSTXDelimiterComments'
+ DefineForGNUC PerMethodFlags AllowSTXDelimiterComments
+ DefineForMINGW32 DefineForMINGW64'
poolDictionaries:''
category:'System-Compiler'
!
@@ -524,6 +525,18 @@
"Created: / 15-03-2007 / 13:34:49 / cg"
!
+useMingw32
+ "true if mingw compiler should be used"
+
+ ^ self usedCompilerDefine = DefineForMINGW32
+!
+
+useMingw64
+ "true if mingw compiler should be used"
+
+ ^ self usedCompilerDefine = DefineForMINGW64
+!
+
useVisualC
"true if visual-c compiler should be used"
@@ -1487,6 +1500,8 @@
DefineForVisualC := '__VISUALC__'.
DefineForMSC := '__MSC__'.
DefineForGNUC := '__GNUC__'.
+ DefineForMINGW32 := '__MINGW32__'.
+ DefineForMINGW64 := '__MINGW64__'.
self initializeSTCFlagsForTopDirectory:'../..'.
@@ -1503,7 +1518,7 @@
notice: for now, can only initialize for borland+windows or linux;
visualC setup still fails."
- |topDir topDirName vcTop sdkTop bccTop useBorlandC useVisualC|
+ |topDir topDirName vcTop sdkTop bccTop useBorlandC useVisualC useMingw|
topDir := topDirArg.
OperatingSystem isMSWINDOWSlike ifTrue:[
@@ -1528,7 +1543,7 @@
].
OperatingSystem isMSWINDOWSlike ifTrue:[
- useBorlandC := useVisualC := false.
+ useBorlandC := useVisualC := useMingw := false.
STCCompilationIncludes := '-I',topDirName,'\include -I',topDirName,'\libopengl'.
(bccTop := BCCTop) isNil ifTrue:[
@@ -2507,11 +2522,12 @@
!ParserFlags class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.97 2012-11-13 13:03:33 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.98 2013-02-21 14:03:42 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.97 2012-11-13 13:03:33 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.98 2013-02-21 14:03:42 cg Exp $'
! !
+
ParserFlags initialize!