Title: [151619] trunk/Source/WebCore
Revision
151619
Author
[email protected]
Date
2013-06-15 19:15:41 -0700 (Sat, 15 Jun 2013)

Log Message

Support using clang instead of gcc for bindings preprocessing
https://bugs.webkit.org/show_bug.cgi?id=117674

Reviewed by Sam Weinig.

I couldn't build on my computer because I don't have gcc installed.
This is my cut at fixing it.

* bindings/scripts/CodeGeneratorObjC.pm:
(ReadPublicInterfaces): Use clang if present.
* bindings/scripts/preprocessor.pm:
(applyPreprocessor): Ditto.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (151618 => 151619)


--- trunk/Source/WebCore/ChangeLog	2013-06-16 01:49:15 UTC (rev 151618)
+++ trunk/Source/WebCore/ChangeLog	2013-06-16 02:15:41 UTC (rev 151619)
@@ -1,3 +1,18 @@
+2013-06-15  Darin Adler  <[email protected]>
+
+        Support using clang instead of gcc for bindings preprocessing
+        https://bugs.webkit.org/show_bug.cgi?id=117674
+
+        Reviewed by Sam Weinig.
+
+        I couldn't build on my computer because I don't have gcc installed.
+        This is my cut at fixing it.
+
+        * bindings/scripts/CodeGeneratorObjC.pm:
+        (ReadPublicInterfaces): Use clang if present.
+        * bindings/scripts/preprocessor.pm:
+        (applyPreprocessor): Ditto.
+
 2013-06-14  Robert Hogan  <[email protected]>
 
         REGRESSION (r148367): Facebook and Twitter icons at macworld.com are stacked vertically, obscuring Twitter one

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm (151618 => 151619)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm	2013-06-16 01:49:15 UTC (rev 151618)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm	2013-06-16 02:15:41 UTC (rev 151619)
@@ -220,6 +220,8 @@
         $gccLocation = $ENV{CC};
     } elsif (($Config::Config{'osname'}) =~ /solaris/i) {
         $gccLocation = "/usr/sfw/bin/gcc";
+    } elsif (-x "/usr/bin/clang") {
+        $gccLocation = "/usr/bin/clang";
     } else {
         $gccLocation = "/usr/bin/gcc";
     }

Modified: trunk/Source/WebCore/bindings/scripts/preprocessor.pm (151618 => 151619)


--- trunk/Source/WebCore/bindings/scripts/preprocessor.pm	2013-06-16 01:49:15 UTC (rev 151618)
+++ trunk/Source/WebCore/bindings/scripts/preprocessor.pm	2013-06-16 02:15:41 UTC (rev 151619)
@@ -49,6 +49,8 @@
             $preprocessor = $ENV{CC};
         } elsif (($Config::Config{'osname'}) =~ /solaris/i) {
             $preprocessor = "/usr/sfw/bin/gcc";
+        } elsif (-x "/usr/bin/clang") {
+            $preprocessor = "/usr/bin/clang";
         } else {
             $preprocessor = "/usr/bin/gcc";
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to