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

Unified Diff: third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm

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/bindings/scripts/IDLParser.pm
===================================================================
--- third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm (revision 54848)
+++ third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm (working copy)
@@ -64,7 +64,13 @@
$parentsOnly = shift;
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++";
+ }
}
if (!$defines) {

Powered by Google App Engine
This is Rietveld 408576698