File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -164,24 +164,22 @@ pub fn build(b: *std.Build) void {
164
164
_ = options ;
165
165
const run = Step .cast (step , Step .Run ).? ;
166
166
const bin_path = run .cwd .? .getPath3 (step .owner , step );
167
-
168
- std .debug .print ("bin_path is {s}\n " , .{bin_path .sub_path });
169
167
}
170
168
171
- fn create_testdb (owner : * std.Build ) * Step {
172
- const run = Step .Compile .create (owner , .{
169
+ fn create_testdb (owner : * Build ) * Step {
170
+ var step = Step .init (.{
171
+ .id = .custom ,
172
+ .owner = owner ,
173
+ .makeFn = make ,
173
174
.name = "Create testdb for test" ,
174
- .root_module = .{},
175
- .kind = .exe ,
176
175
});
177
- var step = & run .step ;
178
- step .makeFn = make ;
179
- return step ;
176
+ return & step ;
180
177
}
181
178
}.create_testdb ;
182
179
183
180
for (lmdb_test ) | test_file | {
184
181
const test_name = test_file [0.. mem .indexOfScalar (u8 , test_file , '.' ).? ];
182
+
185
183
const test_exe = b .addExecutable (.{
186
184
.name = test_name ,
187
185
.target = target ,
@@ -211,7 +209,6 @@ pub fn build(b: *std.Build) void {
211
209
212
210
const create_testdb_step = run_create_testdb (run .step .owner );
213
211
run .step .dependOn (create_testdb_step );
214
-
215
212
test_step .dependOn (& run .step );
216
213
}
217
214
You can’t perform that action at this time.
0 commit comments