← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3111: optimize debug builds with the new -Og flag

 

------------------------------------------------------------
revno: 3111
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Tue 2012-11-06 19:40:25 +0100
message:
  optimize debug builds with the new -Og flag
modified:
  Compile.txt
  SConstruct


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'Compile.txt'
--- Compile.txt	2012-11-05 20:39:11 +0000
+++ Compile.txt	2012-11-06 18:40:25 +0000
@@ -51,11 +51,9 @@
 2. Compiler
 
 	a. MinGW (GCC 4.7 or later):
+	<http://sourceforge.net/projects/mingw/files/>
 	<http://sourceforge.net/projects/mingw-w64/files/>
-	<http://sourceforge.net/projects/mingw/files/>
 
-		We recommend using compilers from the MinGW-w64 project. All you have to do to use one is
-		download it and extract it.
 		Prefer DWARF versions of 32-bit compilers and SEH versions of 64-bit ones. (In short, avoid
 		SJLJ for performance reasons.)
 
@@ -63,7 +61,9 @@
 		mingw-get. Extract it to C:\MinGW and run:
 			mingw-get install gcc g++
 		A graphical installer around mingw-get is also available to facilitate the above.
-		Note that building DC++ with MinGW (not MinGW-w64) is not often tested.
+
+		The MinGW-w64 project also provides compilers that should be able to grok DC++; in
+		particular, they can be used to build 64-bit binaries (add arch=x64 to the SCons params).
 
 		Make sure that MinGW\bin is in your PATH environment variable.
 

=== modified file 'SConstruct'
--- SConstruct	2012-11-06 17:50:04 +0000
+++ SConstruct	2012-11-06 18:40:25 +0000
@@ -14,15 +14,17 @@
 
 # TODO the ipa-cp-clone optimization is disabled; it causes a crash when starting a DL.
 
+# TODO the omit-frame-pointer is disabled; it causes freezes when using lambdas in plugin callbacks.
+
 # TODO enable LTO when it doesn't ICE... (-flto)
 
 # TODO remove -Wno-format when http://cygwin.com/ml/cygwin/2012-01/msg00061.html
 # ("mingw64-i686-gcc-4.5.3-4: -Wformat warnings broken in C++") fixed
 
 gcc_flags = {
-	'common': ['-g', '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-value', '-Wno-missing-field-initializers', '-Wno-address', '-Wno-unknown-pragmas', '-Wno-format', '-fexceptions', '-mthreads'],
-	'debug': [], 
-	'release' : ['-O3', '-fno-omit-frame-pointer', '-fno-ipa-cp-clone', '-mwindows']
+	'common': ['-g', '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-value', '-Wno-missing-field-initializers', '-Wno-address', '-Wno-unknown-pragmas', '-Wno-format', '-fexceptions', '-fno-omit-frame-pointer', '-mthreads'],
+	'debug': ['-Og'], 
+	'release' : ['-O3', '-fno-ipa-cp-clone', '-mwindows']
 }
 
 gcc_xxflags = {