Skip to content

Commit 496e9d4

Browse files
committed
Pass correct target-dir option to cargo instead of target (see #12)
1 parent e6580ef commit 496e9d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/luarocks/build/rust-mlua.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function mlua.run(rockspec, no_install)
3838
local cmd = {"cargo build --release"}
3939

4040
local target_path = rockspec.build and rockspec.build.target_path or "target"
41-
table.insert(cmd, "--target=" .. fs.Q(target_path))
41+
table.insert(cmd, "--target-dir=" .. fs.Q(target_path))
4242

4343
if rockspec.build then
4444
-- Check if default features not required

0 commit comments

Comments
 (0)