Commit 2ebedfa9 authored by Elena Stepanova's avatar Elena Stepanova

MDEV-8532 MTR cannot run with --embedded on Windows on a source build

Do not attempt to run unix-specific code on Windows
parent a6ab8ef9
...@@ -2686,7 +2686,9 @@ sub setup_vardir() { ...@@ -2686,7 +2686,9 @@ sub setup_vardir() {
{ {
$plugindir="$opt_vardir/plugins"; $plugindir="$opt_vardir/plugins";
mkpath($plugindir); mkpath($plugindir);
if (IS_WINDOWS && !$opt_embedded_server) if (IS_WINDOWS)
{
if (!$opt_embedded_server)
{ {
for (<$bindir/storage/*$opt_vs_config/*.dll>, for (<$bindir/storage/*$opt_vs_config/*.dll>,
<$bindir/plugin/*$opt_vs_config/*.dll>, <$bindir/plugin/*$opt_vs_config/*.dll>,
...@@ -2697,6 +2699,7 @@ sub setup_vardir() { ...@@ -2697,6 +2699,7 @@ sub setup_vardir() {
set_plugin_var($pname); set_plugin_var($pname);
} }
} }
}
else else
{ {
my $opt_use_copy= 1; my $opt_use_copy= 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment