amake: recognize .c extension for plugins

This commit is contained in:
luboslenco
2026-03-23 23:18:07 +01:00
parent 0d9e1f9010
commit d668fb1943
+2 -2
View File
@@ -2648,7 +2648,7 @@ class IronExporter {
copy_blob(from, to, embed) {
fs_ensuredir(path_join("build", "out", path_dirname(to)));
let to_full = path_join("build", "out", to);
if (embed && !to.endsWith(".txt") && !to.endsWith(".md") && !to.endsWith(".json") && !to.endsWith(".js") && !to.endsWith(".html")) {
if (embed && !to.endsWith(".txt") && !to.endsWith(".md") && !to.endsWith(".json") && !to.endsWith(".c") && !to.endsWith(".html")) {
fs_ensuredir(path_join("build", "temp", path_dirname(to)));
to_full = path_join("build", "temp", to);
}
@@ -2694,7 +2694,7 @@ function export_iron_project(project, options) {
if (globalThis.flags.embed) {
let embed_files = [];
for (let asset of assets) {
if (asset.noembed || asset.from.endsWith(".txt") || asset.from.endsWith(".md") || asset.from.endsWith(".json") || asset.from.endsWith(".js") || asset.from.endsWith(".html")) {
if (asset.noembed || asset.from.endsWith(".txt") || asset.from.endsWith(".md") || asset.from.endsWith(".json") || asset.from.endsWith(".c") || asset.from.endsWith(".html")) {
continue;
}
embed_files.push(path_resolve("build", "temp", asset.files[0]));