Skip to content
Browse files

fix clang build

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5154 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 4d6cdff commit 24477f548809e898cdd8b105e150f016fd30883b Laurent Sansonetti committed Jan 10, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 util.c
View
13 util.c
@@ -3972,6 +3972,19 @@ ruby_each_words(const char *str, void (*func)(const char*, int, void*), void *ar
}
}
+#if defined(__clang__)
+// Strangely, this function used by the LLVM runtime isn't exported when we
+// build with clang.
+void
+__eprintf(const char* format, const char* assertion_expression,
+ const char* line, const char* file)
+{
+ fprintf(stderr, format, assertion_expression, line, file);
+ fflush(stderr);
+ abort();
+}
+#endif // __clang__
+
#ifdef __cplusplus
}
#endif

0 comments on commit 24477f5

Please sign in to comment.
Something went wrong with that request. Please try again.