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

Unified Diff: third_party/WebKit/WebCore/bindings/scripts/CodeGeneratorObjC.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
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698