|
|
@@ -14,6 +14,12 @@
|
|
|
#define WARNING_LEVEL_FLAG /W3
|
|
|
|
|
|
#define CDEFINES_OPT4 UNKNOWN_ALLOCATOR
|
|
|
+
|
|
|
+ // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
|
|
|
+ #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
|
|
|
+ #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
|
|
|
+ #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
|
|
|
+ #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
|
|
|
|
|
|
#define MAPINFOFLAGS /MAPINFO:EXPORTS /MAPINFO:FIXUPS /MAPINFO:LINES
|
|
|
|
|
|
@@ -40,15 +46,29 @@
|
|
|
#define COMPILER cl
|
|
|
#define LINKER link
|
|
|
#define LIBBER lib
|
|
|
-
|
|
|
- // currently wont build pvector stuff, so need this
|
|
|
+
|
|
|
+ #define DO_CROSSOBJ_OPT 1
|
|
|
+
|
|
|
+ #if $[DO_CROSSOBJ_OPT]
|
|
|
+ #define OPT4FLAGS /GL
|
|
|
+ #define LDFLAGS_OPT4 /LTCG
|
|
|
+ #endif
|
|
|
+
|
|
|
+ // remove 1-3 when allocator stuff is rewritten to build with VC7 STL
|
|
|
#define CDEFINES_OPT1 UNKNOWN_ALLOCATOR
|
|
|
#define CDEFINES_OPT2 UNKNOWN_ALLOCATOR
|
|
|
#define CDEFINES_OPT3 UNKNOWN_ALLOCATOR
|
|
|
#define CDEFINES_OPT4 UNKNOWN_ALLOCATOR
|
|
|
|
|
|
+ // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
|
|
|
+ #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
|
|
|
+ #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
|
|
|
+ #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
|
|
|
+ #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
|
|
|
+
|
|
|
#define COMMONFLAGS /DHAVE_DINKUM
|
|
|
- #define OPTFLAGS /O2 /Ob1 /G6 /QIfist
|
|
|
+
|
|
|
+ #define OPTFLAGS /O2 /Ob2 /G6 /QIfist
|
|
|
#define OPT1FLAGS /GZ /GS
|
|
|
|
|
|
// #define WARNING_LEVEL_FLAG /Wall //this is scary
|
|
|
@@ -91,7 +111,18 @@
|
|
|
#define RELEASEFLAGS /MD
|
|
|
#define WARNING_LEVEL_FLAG /W3
|
|
|
|
|
|
+ #if $[DO_CROSSOBJ_OPT]
|
|
|
+ #define OPT4FLAGS /Qipo
|
|
|
+ #define LDFLAGS_OPT4 /Qipo
|
|
|
+ #endif
|
|
|
+
|
|
|
#define CDEFINES_OPT4 UNKNOWN_ALLOCATOR
|
|
|
+
|
|
|
+ // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
|
|
|
+ #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
|
|
|
+ #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
|
|
|
+ #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
|
|
|
+ #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
|
|
|
|
|
|
// #define OPTFLAGS /O3 /G6 /Qvc6 /Qipo /QaxW /Qvec_report1
|
|
|
#define OPTFLAGS /O3 /G6 /Qvc6 /Qip /QIfist
|