Index: third_party/WebKit/WebCore/bindings/scripts/CodeGeneratorObjC.pm |
=================================================================== |
--- third_party/WebKit/WebCore/bindings/scripts/CodeGeneratorObjC.pm (revision 54848) |
+++ third_party/WebKit/WebCore/bindings/scripts/CodeGeneratorObjC.pm (working copy) |
@@ -222,8 +222,13 @@ |
%publicInterfaces = (); |
my $fileName = "WebCore/bindings/objc/PublicDOMInterfaces.h"; |
- open FILE, "-|", "/usr/bin/gcc", "-E", "-P", "-x", "objective-c", |
- (map { "-D$_" } split(/ +/, $defines)), "-DOBJC_CODE_GENERATION", $fileName or die "Could not open $fileName"; |
+ if (($Config::Config{'osname'})=~/solaris/i){ |
+ open FILE, "-|", "/usr/sfw/bin/gcc", "-E", "-P", "-x", "objective-c", |
+ (map { "-D$_" } split(/ +/, $defines)), "-DOBJC_CODE_GENERATION", $fileName or die "Could not open $fileName"; |
+ } else { |
+ open FILE, "-|", "/usr/bin/gcc", "-E", "-P", "-x", "objective-c", |
+ (map { "-D$_" } split(/ +/, $defines)), "-DOBJC_CODE_GENERATION", $fileName or die "Could not open $fileName"; |
+ } |
my @documentContent = <FILE>; |
close FILE; |