Fixes for OBJDIR builds
This commit is contained in:
Родитель
f50f88edcd
Коммит
a63dd747dc
|
@ -18,7 +18,7 @@ use POSIX qw(sys_wait_h strftime);
|
||||||
use Cwd;
|
use Cwd;
|
||||||
use File::Basename; # for basename();
|
use File::Basename; # for basename();
|
||||||
use Config; # for $Config{sig_name} and $Config{sig_num}
|
use Config; # for $Config{sig_name} and $Config{sig_num}
|
||||||
$::UtilsVersion = '$Revision: 1.30 $ ';
|
$::UtilsVersion = '$Revision: 1.31 $ ';
|
||||||
|
|
||||||
package TinderUtils;
|
package TinderUtils;
|
||||||
|
|
||||||
|
@ -411,6 +411,13 @@ sub SetupPath {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$Settings::ConfigureArgs .= '--cache-file=/dev/null';
|
$Settings::ConfigureArgs .= '--cache-file=/dev/null';
|
||||||
|
|
||||||
|
# Pass $ObjDir along to the build system.
|
||||||
|
if($Settings::ObjDir) {
|
||||||
|
my $_objdir .= "MOZ_OBJDIR=$Settings::ObjDir";
|
||||||
|
$Settings::MakeOverrides .= $_objdir;
|
||||||
|
}
|
||||||
|
|
||||||
#print "Path after: $ENV{PATH}\n";
|
#print "Path after: $ENV{PATH}\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -581,12 +588,6 @@ sub BuildIt {
|
||||||
run_shell_command "$Settings::CVS $cvsco $TreeSpecific::name/client.mk";
|
run_shell_command "$Settings::CVS $cvsco $TreeSpecific::name/client.mk";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Pass $ObjDir along to the build system.
|
|
||||||
if($Settings::ObjDir) {
|
|
||||||
my $_objdir = "MOZ_OBJDIR=$Settings::ObjDir";
|
|
||||||
$Settings::MakeOverrides .= $_objdir;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Create toplevel source directory.
|
# Create toplevel source directory.
|
||||||
chdir $Settings::Topsrcdir or die "chdir $Settings::Topsrcdir: $!\n";
|
chdir $Settings::Topsrcdir or die "chdir $Settings::Topsrcdir: $!\n";
|
||||||
|
|
||||||
|
@ -620,7 +621,7 @@ sub BuildIt {
|
||||||
if (($Settings::EmbedTest or $Settings::BuildEmbed) and $build_status eq 'success') {
|
if (($Settings::EmbedTest or $Settings::BuildEmbed) and $build_status eq 'success') {
|
||||||
print_log "$binary_basename binary exists, building $embed_binary_basename now.\n";
|
print_log "$binary_basename binary exists, building $embed_binary_basename now.\n";
|
||||||
|
|
||||||
my $tmpEmbedConfigDir = "$build_dir/$Settings::Topsrcdir/embedding/config";
|
my $tmpEmbedConfigDir = "$build_dir/$Settings::Topsrcdir/${Settings::ObjDir}/embedding/config";
|
||||||
chdir $tmpEmbedConfigDir or die "chdir $Settings::Topsrcdir: $!\n";
|
chdir $tmpEmbedConfigDir or die "chdir $Settings::Topsrcdir: $!\n";
|
||||||
|
|
||||||
my $make = "$Settings::Make";
|
my $make = "$Settings::Make";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче