summaryrefslogtreecommitdiffstats
path: root/make/config
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-17 03:32:45 +0200
committerSven Gothel <[email protected]>2014-06-17 03:32:45 +0200
commitb378d9ceb20016eeadc536682a08df9acc67aee6 (patch)
tree5dfd600d786ff1ddabf13117e71a1b2c9a004548 /make/config
parent71c6288353553056a955210d051b36617efee464 (diff)
Adapt to GlueGen commit c3054a01990e55ab35756ea23ab7d7c05f24dd37 (compount call-by-value extension)
Diffstat (limited to 'make/config')
-rw-r--r--make/config/cl-impl.cfg1
-rw-r--r--make/config/clImplCustomCode.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/make/config/cl-impl.cfg b/make/config/cl-impl.cfg
index a7b53950..4444b267 100644
--- a/make/config/cl-impl.cfg
+++ b/make/config/cl-impl.cfg
@@ -93,5 +93,6 @@ ForceProcAddressGen clEnqueueMapImage
#include custom code
IncludeAs CustomJavaCode CLAbstractImpl clImplCustomCode.java
+ManualStaticInit CLAbstractImpl
IncludeAs CustomCCode clImplCustomCode.c
diff --git a/make/config/clImplCustomCode.java b/make/config/clImplCustomCode.java
index 6c407110..f57995d1 100644
--- a/make/config/clImplCustomCode.java
+++ b/make/config/clImplCustomCode.java
@@ -19,6 +19,9 @@
return null;
}
addressTable.reset(bundle);
+ if( !initializeImpl() ) {
+ throw new RuntimeException("Initialization failure");
+ }
return bundle;
} } );
}