[macruby-changes] [5154] MacRuby/trunk/util.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 10 15:25:52 PST 2011
Revision: 5154
http://trac.macosforge.org/projects/ruby/changeset/5154
Author: lsansonetti at apple.com
Date: 2011-01-10 15:25:47 -0800 (Mon, 10 Jan 2011)
Log Message:
-----------
fix clang build
Modified Paths:
--------------
MacRuby/trunk/util.c
Modified: MacRuby/trunk/util.c
===================================================================
--- MacRuby/trunk/util.c 2011-01-10 23:12:12 UTC (rev 5153)
+++ MacRuby/trunk/util.c 2011-01-10 23:25:47 UTC (rev 5154)
@@ -3972,6 +3972,19 @@
}
}
+#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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110110/af7865bd/attachment.html>
More information about the macruby-changes
mailing list