[Windows] Unreviewed build fix after r149932
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 May 2013 06:15:52 +0000 (06:15 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 May 2013 06:15:52 +0000 (06:15 +0000)
Patch by Brent Fulgham <bfulgham@apple.com> on 2013-05-11

* make-export-file-generator: Don't attempt to import
(or use) non-existent cxxabi functions on Windows.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149951 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/make-export-file-generator

index b379502..8758493 100644 (file)
@@ -1,3 +1,10 @@
+2013-05-11  Brent Fulgham  <bfulgham@apple.com>
+
+        [Windows] Unreviewed build fix after r149932
+
+        * make-export-file-generator: Don't attempt to import
+        (or use) non-existent cxxabi functions on Windows.
+
 2013-05-11  Simon Fraser  <simon.fraser@apple.com>
 
         Add more info to compositing log channel output
index 461f007..d161072 100755 (executable)
@@ -37,10 +37,14 @@ TEMPLATE = <<-EOF
 #include "config.h"
 #include <stdio.h>
 #include <wtf/Assertions.h>
+
+#if !OS(WINDOWS)
 #include <cxxabi.h>
+#endif
 
 static void validateAndPrint(const char* symbol)
 {
+#if !OS(WINDOWS)
     if (!strncmp(symbol, "__Z", strlen("__Z"))) {
       char* demangledName = abi::__cxa_demangle(symbol + 1, nullptr, nullptr, nullptr);
       if (!demangledName) {
@@ -50,6 +54,7 @@ static void validateAndPrint(const char* symbol)
       
       free(demangledName);
     }
+#endif
 
     printf("%s\\n", symbol);
 }