build_config sets runtime to "none" if embedded

This commit is contained in:
Mitchell Hashimoto
2023-03-03 09:09:44 -08:00
parent 2a40bdabca
commit 7595ccf18f

View File

@ -13,10 +13,10 @@ const apprt = @import("apprt.zig");
pub const artifact = Artifact.detect();
/// The runtime to back exe artifacts with.
pub const app_runtime = std.meta.stringToEnum(
apprt.Runtime,
std.meta.tagName(options.app_runtime),
).?;
pub const app_runtime: apprt.Runtime = switch (artifact) {
.lib => .none,
else => std.meta.stringToEnum(apprt.Runtime, std.meta.tagName(options.app_runtime)).?,
};
/// Whether our devmode UI is enabled or not. This requires imgui to be
/// compiled.