Index: third_party/WebKit/WebCore/dom/make_names.pl |
=================================================================== |
--- third_party/WebKit/WebCore/dom/make_names.pl (revision 54848) |
+++ third_party/WebKit/WebCore/dom/make_names.pl (working copy) |
@@ -47,7 +47,14 @@ |
my %attrs = (); |
my %parameters = (); |
my $extraDefines = 0; |
-my $preprocessor = "/usr/bin/gcc -E -P -x c++"; |
+my $preprocessor = ""; |
+# Detect OS. If Solaris, use /usr/sfw/bin/gcc. |
+require Config; |
+if (($Config::Config{'osname'})=~/solaris/i){ |
+ $preprocessor = "/usr/sfw/bin/gcc -E -P -x c++"; |
+} else { |
+ $preprocessor = "/usr/bin/gcc -E -P -x c++"; |
+} |
GetOptions( |
'tags=s' => \$tagsFile, |