| ... | ... | @@ -6,6 +6,10 @@ const known_folders = @import("known-folders"); |
| 6 | 6 | const u = @import("./../util/index.zig"); |
| 7 | 7 | const common = @import("./../common.zig"); |
| 8 | 8 | |
| 9 | const root = @import("root"); |
| 10 | const build_options = if (@hasDecl(root, "build_options")) root.build_options else struct {}; |
| 11 | const bootstrap = if (@hasDecl(build_options, "bootstrap")) build_options.bootstrap else false; |
| 12 | |
| 9 | 13 | // |
| 10 | 14 | // |
| 11 | 15 | |
| ... | ... | @@ -25,6 +29,8 @@ pub fn execute(args: [][]u8) !void { |
| 25 | 29 | |
| 26 | 30 | try create_depszig(dir, top_module, list); |
| 27 | 31 | |
| 32 | if (bootstrap) return; |
| 33 | |
| 28 | 34 | try create_lockfile(list, dir); |
| 29 | 35 | } |
| 30 | 36 | |