Skip to content

Commit 107a009

Browse files
Don't build macOS 32-bit binaries anymore.
1 parent b4d9b3c commit 107a009

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

external/buildscripts/build_all_osx.pl

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@
5151
'buildusandboo=i'=>\$buildUsAndBoo,
5252
);
5353

54-
my $monoArch32Target = "i386";
55-
if ($buildMachine)
56-
{
57-
print(">>> Building $monoArch32Target\n");
58-
system("perl", "$buildscriptsdir/build.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ("failing building $monoArch32Target");
59-
}
60-
6154
if ($artifactsCommon)
6255
{
6356
push @passAlongArgs, "--artifactscommon=1";
@@ -73,20 +66,14 @@
7366

7467
if ($artifact)
7568
{
76-
print(">>> Creating universal binaries\n");
69+
print(">>> Moving built binaries to final output directories\n");
7770
# Merge stuff in the embedruntimes directory
7871
my $embedDirRoot = "$buildsroot/embedruntimes";
7972
my $embedDirDestination = "$embedDirRoot/osx";
80-
my $embedDirSource32 = "$embedDirRoot/osx-tmp-$monoArch32Target";
8173
my $embedDirSource64 = "$embedDirRoot/osx-tmp-x86_64";
8274

8375
system("mkdir -p $embedDirDestination");
8476

85-
if (!(-d $embedDirSource32) && $buildMachine)
86-
{
87-
die("Expected source directory not found : $embedDirSource32\n");
88-
}
89-
9077
if (!(-d $embedDirSource64))
9178
{
9279
die("Expected source directory not found : $embedDirSource64\n");
@@ -116,7 +103,6 @@
116103
my $distDirRoot = "$buildsroot/monodistribution";
117104
my $distDirDestinationBin = "$buildsroot/monodistribution/bin";
118105
my $distDirDestinationLib = "$buildsroot/monodistribution/lib";
119-
my $distDirSourceBin32 = "$distDirRoot/bin-osx-tmp-$monoArch32Target";
120106
my $distDirSourceBin64 = "$distDirRoot/bin-osx-tmp-x86_64";
121107

122108
# Should always exist because build_all would have put stuff in it, but in some situations
@@ -131,20 +117,14 @@
131117
system("mkdir -p $distDirDestinationLib");
132118
}
133119

134-
if (!(-d $distDirSourceBin32))
135-
{
136-
die("Expected source directory not found : $distDirSourceBin32\n");
137-
}
138-
139120
if (!(-d $distDirSourceBin64))
140121
{
141122
die("Expected source directory not found : $distDirSourceBin64\n");
142123
}
143124

144125
for my $file ('mono','pedump')
145126
{
146-
print(">>> lipo $distDirSourceBin32/$file $distDirSourceBin64/$file -create -output $distDirDestinationBin/$file\n\n");
147-
system ('lipo', "$distDirSourceBin32/$file", "$distDirSourceBin64/$file", '-create', '-output', "$distDirDestinationBin/$file");
127+
system ('mv', "$distDirSourceBin64/$file", "$distDirDestinationBin/$file");
148128
}
149129

150130
for my $file ('libMonoPosixHelper.dylib')
@@ -157,9 +137,7 @@
157137
{
158138
print(">>> Clean up temporary arch specific build directories\n");
159139

160-
rmtree("$distDirSourceBin32");
161140
rmtree("$distDirSourceBin64");
162-
rmtree("$embedDirSource32");
163141
rmtree("$embedDirSource64");
164142
}
165143
}

0 commit comments

Comments
 (0)