use of org.robovm.compiler.config.Arch in project robovm by robovm.
the class ClassCompiler method compile.
public void compile(Clazz clazz, Executor executor, ClassCompilerListener listener) throws IOException {
reset();
Arch arch = config.getArch();
OS os = config.getOs();
try {
config.getLogger().info("Compiling %s (%s %s %s)", clazz, os, arch, config.isDebug() ? "debug" : "release");
output.reset();
compile(clazz, output);
} catch (Throwable t) {
if (t instanceof IOException) {
throw (IOException) t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
}
throw new RuntimeException(t);
}
List<String> cCode = new ArrayList<>();
cCode.addAll(bridgeMethodCompiler.getCWrapperFunctions());
cCode.addAll(callbackMethodCompiler.getCWrapperFunctions());
scheduleMachineCodeGeneration(executor, listener, config, clazz, output.toByteArray(), cCode);
}
Aggregations