build: imgui should not be linked without an apprt

This commit is contained in:
Mitchell Hashimoto
2023-08-18 08:24:09 -07:00
parent 7659a2a733
commit 3879f7c2e8

View File

@ -692,7 +692,6 @@ fn addDeps(
.freetype = mod_freetype, .freetype = mod_freetype,
.macos = mod_macos, .macos = mod_macos,
})); }));
step.addModule("imgui", imgui.module(b));
step.addModule("xev", mod_libxev); step.addModule("xev", mod_libxev);
step.addModule("pixman", pixman.module(b)); step.addModule("pixman", pixman.module(b));
step.addModule("stb_image_resize", stb_image_resize.module(b)); step.addModule("stb_image_resize", stb_image_resize.module(b));
@ -849,6 +848,7 @@ fn addDeps(
try glfw.link(b, step, glfw_opts); try glfw.link(b, step, glfw_opts);
// Must also link to imgui // Must also link to imgui
step.addModule("imgui", imgui.module(b));
const imgui_step = try imgui.link(b, step, imgui_opts); const imgui_step = try imgui.link(b, step, imgui_opts);
try glfw.link(b, imgui_step, glfw_opts); try glfw.link(b, imgui_step, glfw_opts);
}, },