mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-31 12:24:10 -08:00
Wasm: fix compiler crash when compiling without debug info
This commit is contained in:
parent
4453bba33b
commit
930a57fdd6
|
@ -553,7 +553,7 @@ public class WasmTarget implements TeaVMTarget, TeaVMWasmHost {
|
||||||
var writer = new WasmBinaryWriter();
|
var writer = new WasmBinaryWriter();
|
||||||
var debugBuilder = debugging ? new DebugInfoBuilder() : null;
|
var debugBuilder = debugging ? new DebugInfoBuilder() : null;
|
||||||
var renderer = new WasmBinaryRenderer(writer, version, obfuscated, dwarfGenerator, dwarfClassGen,
|
var renderer = new WasmBinaryRenderer(writer, version, obfuscated, dwarfGenerator, dwarfClassGen,
|
||||||
debugBuilder.lines());
|
debugBuilder != null ? debugBuilder.lines() : null);
|
||||||
renderer.render(module, buildDebug(dwarfGenerator, dwarfClassGen, debugBuilder));
|
renderer.render(module, buildDebug(dwarfGenerator, dwarfClassGen, debugBuilder));
|
||||||
|
|
||||||
try (OutputStream output = buildTarget.createResource(outputName)) {
|
try (OutputStream output = buildTarget.createResource(outputName)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user