Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: third_party/WebKit/WebCore/dom/make_names.pl

Issue 650016: Solaris: WebKit patches to enable Solaris build. Specifically, /usr/bin/gcc i... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/WebCore/css/make-css-file-arrays.pl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « third_party/WebKit/WebCore/css/make-css-file-arrays.pl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698