Merge pull request #2739 from AnthonyZhOon/main

Change oniguruma link target from `oniguruma` to `onig`
This commit is contained in:
Mitchell Hashimoto
2024-11-20 06:36:13 -08:00
committed by GitHub

View File

@ -1104,7 +1104,8 @@ fn addDeps(
});
step.root_module.addImport("oniguruma", oniguruma_dep.module("oniguruma"));
if (b.systemIntegrationOption("oniguruma", .{})) {
step.linkSystemLibrary2("oniguruma", dynamic_link_opts);
// Oniguruma is compiled and distributed as libonig.so
step.linkSystemLibrary2("onig", dynamic_link_opts);
} else {
step.linkLibrary(oniguruma_dep.artifact("oniguruma"));
try static_libs.append(oniguruma_dep.artifact("oniguruma").getEmittedBin());