summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-23 01:51:28 +0200
committerSven Gothel <[email protected]>2011-07-23 01:51:28 +0200
commitd531b608884f4eeac8a33e6476d1ba05e560ae43 (patch)
tree9b561663e9a2b6bb373393d4490d08b30024245c
parent967782f7bdbd0dd73c2e3ea448a0c9d44552a7d9 (diff)
Add missing defines (__unix__, DEBUG) for solaris, etc
-rwxr-xr-xmake/gluegen-cpptasks-base.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/make/gluegen-cpptasks-base.xml b/make/gluegen-cpptasks-base.xml
index 4ac18d0..2c27c06 100755
--- a/make/gluegen-cpptasks-base.xml
+++ b/make/gluegen-cpptasks-base.xml
@@ -682,6 +682,10 @@
<compiler id="compiler.cfg.solaris" name="gcc">
<defineset>
+ <define name="__unix__"/>
+ <define name="_DEBUG" if="c.compiler.use-debug"/>
+ <define name="DEBUG" if="c.compiler.use-debug"/>
+ <define name="NDEBUG" unless="c.compiler.use-debug"/>
<define name="SOLARIS" />
</defineset>
</compiler>
@@ -691,6 +695,10 @@
<compilerarg value="-xchip=ultra" />
<compilerarg value="-xarch=v9a" />
<defineset>
+ <define name="__unix__"/>
+ <define name="_DEBUG" if="c.compiler.use-debug"/>
+ <define name="DEBUG" if="c.compiler.use-debug"/>
+ <define name="NDEBUG" unless="c.compiler.use-debug"/>
<define name="SOLARIS" />
</defineset>
</compiler>
@@ -701,6 +709,10 @@
<compilerarg value="-xarch=amd64" />
<compilerarg value="-xcache=64/64/2:1024/64/16" />
<defineset>
+ <define name="__unix__"/>
+ <define name="_DEBUG" if="c.compiler.use-debug"/>
+ <define name="DEBUG" if="c.compiler.use-debug"/>
+ <define name="NDEBUG" unless="c.compiler.use-debug"/>
<define name="SOLARIS" />
</defineset>
</compiler>