Changeset 36
- Timestamp:
- Sun Sep 11 18:34:37 2005
- Files:
-
- trunk/Sconstruct (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/Sconstruct
r22 r36 34 34 env = base_env.Copy() 35 35 36 # The DLL runtime must be the same of that used by the python DLL. 37 # I cannot think of a way to guess it from here, so let's assume 38 # the user has a non-debug build of Python in his system. 39 env.Append(CCFLAGS = ["/MD"]) 40 36 41 if flavour == "debug": 37 # Use debug multithreaded DLL runtime, and no optimization 38 env.Append(CCFLAGS = ["/MDd", "/Od"]) 42 # No optimizations 43 env.Append(CCFLAGS = ["/Od"]) 39 44 # Each object has its own pdb, so -jN works 40 45 env.Append(CCFLAGS = ["/Zi", "/Fd${TARGET}.pdb"]) 41 46 env.Append(LINKFLAGS = ["/DEBUG"]) 42 47 else: 43 # Use multithreaded DLL runtime, and some sensible amount of optimization 44 env.Append(CCFLAGS = ["/MD", "/Ox", "/DNDEBUG"]) 48 # Use some sensible amount of optimizations 49 env.Append(CCFLAGS = ["/Ox", "/DNDEBUG"]) 45 50 46 51 if mode == "cons":
