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

Unified Diff: third_party/WebKit/WebCore/css/make-css-file-arrays.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
Index: third_party/WebKit/WebCore/css/make-css-file-arrays.pl
===================================================================
--- third_party/WebKit/WebCore/css/make-css-file-arrays.pl (revision 54848)
+++ third_party/WebKit/WebCore/css/make-css-file-arrays.pl (working copy)
@@ -28,7 +28,13 @@
GetOptions('preprocessor=s' => \$preprocessor);
if (!$preprocessor) {
- $preprocessor = "/usr/bin/gcc -E -P -x c++";
+ # 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++";
+ }
}
my $header = $ARGV[0];
« no previous file with comments | « third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm ('k') | third_party/WebKit/WebCore/dom/make_names.pl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698