Skip to content

Commit

Permalink
rust: Skip building in VPATH
Browse files Browse the repository at this point in the history
Cargo does not play nicely with VPATH (at least, that's what my quick
google search found:
rust-lang/cargo#5457 (comment)).
Easiest is to just disable it when we detect a VPATH build.
  • Loading branch information
ebblake committed Oct 20, 2022
1 parent b8c07f9 commit 46d5f2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -942,11 +942,16 @@ EOF
])

dnl For developing plugins in Rust, optional.
dnl Rust does not play nicely with VPATH builds
AC_CHECK_PROG([CARGO],[cargo],[cargo],[no])
AC_ARG_ENABLE([rust],
[AS_HELP_STRING([--disable-rust], [disable Rust plugin])],
[],
[enable_rust=yes])
[if test "x$(realpath $srcdir)" = "x$(realpath .)"; then
enable_rust=yes
else
enable_rust=no
fi])
AM_CONDITIONAL([HAVE_RUST],
[test "x$CARGO" != "xno" && test "x$enable_rust" != "xno"])

Expand Down

0 comments on commit 46d5f2f

Please sign in to comment.