|
51 | 51 | 'buildusandboo=i'=>\$buildUsAndBoo,
|
52 | 52 | );
|
53 | 53 |
|
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 |
| - |
61 | 54 | if ($artifactsCommon)
|
62 | 55 | {
|
63 | 56 | push @passAlongArgs, "--artifactscommon=1";
|
|
73 | 66 |
|
74 | 67 | if ($artifact)
|
75 | 68 | {
|
76 |
| - print(">>> Creating universal binaries\n"); |
| 69 | + print(">>> Moving built binaries to final output directories\n"); |
77 | 70 | # Merge stuff in the embedruntimes directory
|
78 | 71 | my $embedDirRoot = "$buildsroot/embedruntimes";
|
79 | 72 | my $embedDirDestination = "$embedDirRoot/osx";
|
80 |
| - my $embedDirSource32 = "$embedDirRoot/osx-tmp-$monoArch32Target"; |
81 | 73 | my $embedDirSource64 = "$embedDirRoot/osx-tmp-x86_64";
|
82 | 74 |
|
83 | 75 | system("mkdir -p $embedDirDestination");
|
84 | 76 |
|
85 |
| - if (!(-d $embedDirSource32) && $buildMachine) |
86 |
| - { |
87 |
| - die("Expected source directory not found : $embedDirSource32\n"); |
88 |
| - } |
89 |
| - |
90 | 77 | if (!(-d $embedDirSource64))
|
91 | 78 | {
|
92 | 79 | die("Expected source directory not found : $embedDirSource64\n");
|
|
116 | 103 | my $distDirRoot = "$buildsroot/monodistribution";
|
117 | 104 | my $distDirDestinationBin = "$buildsroot/monodistribution/bin";
|
118 | 105 | my $distDirDestinationLib = "$buildsroot/monodistribution/lib";
|
119 |
| - my $distDirSourceBin32 = "$distDirRoot/bin-osx-tmp-$monoArch32Target"; |
120 | 106 | my $distDirSourceBin64 = "$distDirRoot/bin-osx-tmp-x86_64";
|
121 | 107 |
|
122 | 108 | # Should always exist because build_all would have put stuff in it, but in some situations
|
|
131 | 117 | system("mkdir -p $distDirDestinationLib");
|
132 | 118 | }
|
133 | 119 |
|
134 |
| - if (!(-d $distDirSourceBin32)) |
135 |
| - { |
136 |
| - die("Expected source directory not found : $distDirSourceBin32\n"); |
137 |
| - } |
138 |
| - |
139 | 120 | if (!(-d $distDirSourceBin64))
|
140 | 121 | {
|
141 | 122 | die("Expected source directory not found : $distDirSourceBin64\n");
|
142 | 123 | }
|
143 | 124 |
|
144 | 125 | for my $file ('mono','pedump')
|
145 | 126 | {
|
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"); |
148 | 128 | }
|
149 | 129 |
|
150 | 130 | for my $file ('libMonoPosixHelper.dylib')
|
|
157 | 137 | {
|
158 | 138 | print(">>> Clean up temporary arch specific build directories\n");
|
159 | 139 |
|
160 |
| - rmtree("$distDirSourceBin32"); |
161 | 140 | rmtree("$distDirSourceBin64");
|
162 |
| - rmtree("$embedDirSource32"); |
163 | 141 | rmtree("$embedDirSource64");
|
164 | 142 | }
|
165 | 143 | }
|
0 commit comments