|
181 | 181 | # abs_path ends up returning an empty string
|
182 | 182 | $externalBuildDeps = abs_path($externalBuildDeps) if (-d $externalBuildDeps);
|
183 | 183 |
|
184 |
| -my $existingExternalMonoRoot = "$externalBuildDeps/mono"; |
| 184 | +my $existingExternalMonoRoot = "$externalBuildDeps/MonoBleedingEdge"; |
185 | 185 | my $existingExternalMono = "";
|
| 186 | +my $existingExternalMonoBinDir = ""; |
186 | 187 | my $monoHostArch = "";
|
187 | 188 | my $monoprefix = "$monoroot/tmp";
|
188 | 189 | my $runningOnWindows=0;
|
189 | 190 | if($^O eq "linux")
|
190 | 191 | {
|
191 | 192 | $monoHostArch = $arch32 ? "i686" : "x86_64";
|
192 |
| - $existingExternalMono = "$existingExternalMonoRoot/linux"; |
| 193 | + $existingExternalMono = "$existingExternalMonoRoot"; |
| 194 | + $existingExternalMonoBinDir = "bin-linux64"; |
193 | 195 | }
|
194 | 196 | elsif($^O eq 'darwin')
|
195 | 197 | {
|
196 | 198 | $monoHostArch = $arch32 ? "i386" : "x86_64";
|
197 |
| - $existingExternalMono = "$existingExternalMonoRoot/osx"; |
| 199 | + $existingExternalMono = "$existingExternalMonoRoot"; |
| 200 | + $existingExternalMonoBinDir = "bin"; |
198 | 201 |
|
199 | 202 | # From Massi: I was getting failures in install_name_tool about space
|
200 | 203 | # for the commands being too small, and adding here things like
|
|
211 | 214 | else
|
212 | 215 | {
|
213 | 216 | $monoHostArch = "i686";
|
214 |
| - $existingExternalMono = "$existingExternalMonoRoot/win"; |
| 217 | + $existingExternalMono = "$existingExternalMonoRoot"; |
| 218 | + $existingExternalMonoBinDir = "bin-x64"; |
215 | 219 | $runningOnWindows = 1;
|
216 | 220 |
|
217 | 221 | # We only care about an existing mono if we need to build.
|
|
317 | 321 | {
|
318 | 322 | # We need to extract builds.zip
|
319 | 323 | print(">>> Extracting mono builds.zip...\n");
|
320 |
| - system("unzip", "$existingExternalMono/builds.zip", "-d", "$existingExternalMono") eq 0 or die("failed to extract mono builds.zip\n"); |
| 324 | + system("unzip", "$existingExternalMono/builds.zip", "-d", "$existingExternalMono/builds") eq 0 or die("failed to extract mono builds.zip\n"); |
321 | 325 | }
|
322 | 326 |
|
323 |
| - $existingMonoRootPath = "$existingExternalMono/builds"; |
| 327 | + $existingMonoRootPath = "$existingExternalMono/builds/monodistribution"; |
324 | 328 | }
|
325 | 329 | else
|
326 | 330 | {
|
|
1242 | 1246 | }
|
1243 | 1247 |
|
1244 | 1248 | print ">>> Existing Mono : $existingMonoRootPath\n\n";
|
1245 |
| - $ENV{'PATH'} = "$existingMonoRootPath/bin:$ENV{'PATH'}"; |
| 1249 | + $ENV{'PATH'} = "$existingMonoRootPath/$existingExternalMonoBinDir:$ENV{'PATH'}"; |
1246 | 1250 |
|
1247 | 1251 | print ">>> PATH before Build = $ENV{PATH}\n\n";
|
1248 | 1252 |
|
|
0 commit comments