File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ const builtin = @import("builtin");
3
3
const mem = std .mem ;
4
4
const Build = std .Build ;
5
5
const Step = Build .Step ;
6
- const MakeOptions = if (@hasDecl (Step , "MakeOptions" ))
7
- Step .MakeOptions
8
- else
9
- std .Progress .Node ;
10
6
11
7
pub fn build (b : * Build ) void {
12
8
if (comptime ! checkVersion ())
@@ -158,6 +154,11 @@ pub fn build(b: *Build) void {
158
154
// "mtest6.c", // disabled as it requires building liblmdb with MDB_DEBUG
159
155
};
160
156
157
+ const MakeOptions = if (@hasDecl (Step , "MakeOptions" ))
158
+ Step .MakeOptions
159
+ else
160
+ std .Progress .Node ;
161
+
161
162
const test_step = b .step ("test" , "Run lmdb tests" );
162
163
const run_create_testdb = struct {
163
164
fn makeFn (step : * Step , options : MakeOptions ) ! void {
@@ -180,10 +181,8 @@ pub fn build(b: *Build) void {
180
181
181
182
fn create_testdb (owner : * Build , test_dirname : Build.LazyPath ) * Step {
182
183
const run = Step .Run .create (owner , "create testdb at the generated path" );
183
- run .cwd = test_dirname ;
184
184
run .step .makeFn = makeFn ;
185
-
186
- test_dirname .addStepDependencies (& run .step );
185
+ run .setCwd (test_dirname );
187
186
188
187
return & run .step ;
189
188
}
You can’t perform that action at this time.
0 commit comments