← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3063: define __i686__ for atomic / lockfree

 

------------------------------------------------------------
revno: 3063
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Sat 2012-09-22 15:34:38 +0200
message:
  define __i686__ for atomic / lockfree
modified:
  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 'SConstruct'
--- SConstruct	2012-09-18 17:14:06 +0000
+++ SConstruct	2012-09-22 13:34:38 +0000
@@ -72,8 +72,12 @@
 	'release' : ['NDEBUG']
 }
 
+# define __i686__ because the default MinGW is for __i386__. we need i686 instructions for
+# atomic<int64_t>, required by boost::lockfree (otherwise lockfree lists won't actually be lock-
+# free).
+# TODO check ramifications / possibly switch to an actual i686 compiler...
 gcc_defs = {
-	'common' : ['_REENTRANT', 'NO_VIZ'],
+	'common' : ['__i686__', '_REENTRANT', 'NO_VIZ'],
 	'debug' : ['_DEBUG'],
 	'release' : ['NDEBUG']
 }