MDEV-8532 MTR cannot run with --embedded on Windows on a source build
Do not attempt to run unix-specific code on Windows
This commit is contained in:
parent
a6ab8ef9d7
commit
2ebedfa998
@ -2686,15 +2686,18 @@ sub setup_vardir() {
|
|||||||
{
|
{
|
||||||
$plugindir="$opt_vardir/plugins";
|
$plugindir="$opt_vardir/plugins";
|
||||||
mkpath($plugindir);
|
mkpath($plugindir);
|
||||||
if (IS_WINDOWS && !$opt_embedded_server)
|
if (IS_WINDOWS)
|
||||||
{
|
{
|
||||||
for (<$bindir/storage/*$opt_vs_config/*.dll>,
|
if (!$opt_embedded_server)
|
||||||
<$bindir/plugin/*$opt_vs_config/*.dll>,
|
|
||||||
<$bindir/sql$opt_vs_config/*.dll>)
|
|
||||||
{
|
{
|
||||||
my $pname=basename($_);
|
for (<$bindir/storage/*$opt_vs_config/*.dll>,
|
||||||
copy rel2abs($_), "$plugindir/$pname";
|
<$bindir/plugin/*$opt_vs_config/*.dll>,
|
||||||
set_plugin_var($pname);
|
<$bindir/sql$opt_vs_config/*.dll>)
|
||||||
|
{
|
||||||
|
my $pname=basename($_);
|
||||||
|
copy rel2abs($_), "$plugindir/$pname";
|
||||||
|
set_plugin_var($pname);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user