1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 05:55:04 -05:00

testcurl.pl: build example programs for MinGW cross-compiles

This commit is contained in:
Yang Tse 2012-04-12 21:14:53 +02:00
parent 5f04843e5b
commit 1c3a99b52c

View File

@ -724,8 +724,23 @@ if ($configurebuild && !$crosscompile) {
}
else {
if($crosscompile) {
# build test harness programs for selected cross-compiles
my $host_triplet = get_host_triplet();
# build example programs for selected cross-compiles
if($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) {
chdir "$pwd/$build/docs/examples";
logit_spaced "build examples";
open(F, "$make -i 2>&1 |") or die;
open(LOG, ">$buildlog") or die;
while (<F>) {
s/$pwd//g;
print;
print LOG;
}
close(F);
close(LOG);
chdir "$pwd/$build";
}
# build test harness programs for selected cross-compiles
if($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) {
chdir "$pwd/$build/tests";
logit_spaced "build test harness";