remove anonymous import
This commit is contained in:
parent
16319a9f47
commit
d2e0f43bf0
1 changed files with 5 additions and 2 deletions
|
|
@ -144,9 +144,12 @@ pub fn build(b: *std.Build) void {
|
|||
root_module.addImport("httpz", httpz.module("httpz"));
|
||||
root_module.addImport("zeit", zeit.module("zeit"));
|
||||
root_module.addImport("srf", srf.module("srf"));
|
||||
root_module.addAnonymousImport("airports.dat", .{
|
||||
// A named module rather than an anonymous import. Anonymous imports can put
|
||||
// the same file in more than one module, which surfaces later as a confusing
|
||||
// "file exists in multiple modules" error, and they leave the wiring implicit.
|
||||
root_module.addImport("airports.dat", b.addModule("airports.dat", .{
|
||||
.root_source_file = openflights.path("data/airports.dat"),
|
||||
});
|
||||
}));
|
||||
root_module.addOptions("build_options", build_options);
|
||||
root_module.addIncludePath(maxminddb_upstream.path("include"));
|
||||
root_module.addIncludePath(b.path("libs/phoon_14Aug2014"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue