summaryrefslogtreecommitdiffstats
path: root/make/gluegen-cpptasks-base.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-01-30 20:50:02 +0100
committerSven Gothel <[email protected]>2015-01-30 20:50:02 +0100
commit3caf446e29a3934900b9983dfd72cb8aa0d9e8d7 (patch)
tree6400dad527db09db50b6f3691f22ec3c85acd7c6 /make/gluegen-cpptasks-base.xml
parent6eba192bec7cc6258fbc0c97b448fe4a4d45de9a (diff)
Bug 1122: Reflect __LP64__ and _aarch64__ in GlueGen's stdint/stddef and Android compilerflags
Diffstat (limited to 'make/gluegen-cpptasks-base.xml')
-rwxr-xr-xmake/gluegen-cpptasks-base.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/make/gluegen-cpptasks-base.xml b/make/gluegen-cpptasks-base.xml
index e896fc0..58c539c 100755
--- a/make/gluegen-cpptasks-base.xml
+++ b/make/gluegen-cpptasks-base.xml
@@ -986,6 +986,8 @@
<compilerarg value="-fPIC"/>
<compilerarg value="-m64"/>
<defineset>
+ <define name="__LP64__" /> <!-- default pre-defined macro for 64bit unix -->
+
<define name="__unix__"/>
<define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
@@ -1015,6 +1017,9 @@
<compiler id="compiler.cfg.linux.aarch64" name="${gcc.compat.compiler}">
<defineset>
+ <define name="__LP64__" /> <!-- default pre-defined macro for 64bit unix -->
+ <define name="__aarch64__" /> <!-- default pre-defined macro for armv8-a, 64bit -->
+
<define name="__unix__"/>
<define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
@@ -1104,6 +1109,8 @@
<!-- compilerarg value="-xarch=amd64" / -->
<!-- compilerarg value="-xcache=64/64/2:1024/64/16" / -->
<defineset>
+ <define name="__LP64__" /> <!-- default pre-defined macro for 64bit unix -->
+
<define name="__unix__"/>
<define name="__X11__" if="isX11"/>
<define name="_DEBUG" if="c.compiler.use-debug"/>
@@ -1170,6 +1177,8 @@
<compilerarg value="-O0" if="c.compiler.use-debug"/>
<compilerarg value="-O2" unless="c.compiler.use-debug"/>
<defineset>
+ <define name="__LP64__" /> <!-- default pre-defined macro for 64bit 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"/>