deps: Allow dynamic-linking of spirv-cross

- Use the pkg-config name of 'spirv-cross-c-shared' exported by the upstream SPIRV-Cross build
This commit is contained in:
azhn
2025-09-23 20:33:51 +10:00
parent 3eb646ea6b
commit a9c5a05e5b
2 changed files with 50 additions and 35 deletions

View File

@@ -260,7 +260,7 @@ pub fn add(
spirv_cross_dep.module("spirv_cross"),
);
if (b.systemIntegrationOption("spirv-cross", .{})) {
step.linkSystemLibrary2("spirv-cross", dynamic_link_opts);
step.linkSystemLibrary2("spirv-cross-c-shared", dynamic_link_opts);
} else {
step.linkLibrary(spirv_cross_dep.artifact("spirv_cross"));
try static_libs.append(