add explicit smithy dependency of aws module
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 7m51s

This commit is contained in:
Emil Lerch 2023-09-05 16:38:37 -07:00
parent eb91d40edf
commit 090c06c403
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -42,10 +42,14 @@ pub fn build(b: *Builder) !void {
.target = target,
.optimize = optimize,
});
exe.addModule("smithy", smithy_dep.module("smithy"));
const smithy_module = smithy_dep.module("smithy");
exe.addModule("smithy", smithy_module); // not sure this should be here...
const module = b.addModule("aws", .{
.source_file = .{ .path = "src/aws.zig" },
.dependencies = &[_]std.build.ModuleDependency{
.{ .name = "smithy", .module = smithy_module },
},
});
exe.addModule("aws", module);
// TODO: This does not work correctly due to https://github.com/ziglang/zig/issues/16354