Commit 7b6a8875 authored by darin's avatar darin
Browse files

Reviewed by Tim Hatcher.

        * Scripts/check-for-global-initializers: Delete the linked executable if the check fails.
        Without this, you only see the global initializer error once, which makes it very easy
        to miss them.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ddff15de
2007-02-19 Darin Adler <darin@apple.com>
Reviewed by Tim Hatcher.
* Scripts/check-for-global-initializers: Delete the linked executable if the check fails.
Without this, you only see the global initializer error once, which makes it very easy
to miss them.
2007-02-16 Mark Rowe <mrowe@apple.com>
Not reviewed.
......
......@@ -42,7 +42,8 @@ my $variant = $ENV{'CURRENT_VARIANT'};
$arch = $ENV{'NATIVE_ARCH'} if !$arch; # for Xcode 2.1, which does not have CURRENT_ARCH
$variant = "normal" if !$variant; # for Xcode 2.1, which does not have CURRENT_VARIANT
my $executableAge = -M "$ENV{'TARGET_BUILD_DIR'}/$ENV{'EXECUTABLE_PATH'}";
my $executablePath = "$ENV{'TARGET_BUILD_DIR'}/$ENV{'EXECUTABLE_PATH'}";
my $executableAge = -M $executablePath;
my $list = $ENV{"LINK_FILE_LIST_${variant}_${arch}"};
......@@ -98,4 +99,7 @@ for my $file (sort @files) {
}
}
exit $sawError;
if ($sawError) {
unlink $executablePath;
exit 1;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment