mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix class initializer compilation for WASI target
This commit is contained in:
parent
8db406c603
commit
ab253fd34a
|
@ -548,7 +548,13 @@ public class TeaVM implements TeaVMHost, ServiceRepository {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
addInitializersToEntryPoint(classes, new MethodReference(entryPoint, CLINIT_DESC));
|
var initializers = target.getInitializerMethods();
|
||||||
|
if (initializers == null) {
|
||||||
|
initializers = List.of(new MethodReference(entryPoint, CLINIT_DESC));
|
||||||
|
}
|
||||||
|
for (var initializer : initializers) {
|
||||||
|
addInitializersToEntryPoint(classes, initializer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addInitializersToEntryPoint(ClassHolderSource classes, MethodReference methodRef) {
|
private void addInitializersToEntryPoint(ClassHolderSource classes, MethodReference methodRef) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user