[swift-dev] Does it make sense to fold FreeBSD specific patches to Swift into the upstream codebase?
sgeos at hotmail.com
Sun Oct 2 12:38:53 CDT 2016
Currently the Swift source code is being patched so that it will build on FreeBSD. Does it make sense to just fold (most of?) these changes into the upstream Swift codebase?
A total of 9 files are patched. A casual review of the patches indicates that they are all making simple modifications so that FreeBSD is a supported operating system. Here is an example of one of the patches.
/usr/ports/lang/swift/files/patch-llvm_lib_Support_Unix_Process.inc complete listing
--- llvm/lib/Support/Unix/Process.inc.orig 2016-02-26 00:51:43 UTC
@@ -36,7 +36,7 @@
// DragonFlyBSD, OpenBSD, and Bitrig have deprecated <malloc.h> for
// <stdlib.h> instead. Unix.h includes this for us already.
#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) && \
- !defined(__OpenBSD__) && !defined(__Bitrig__)
+ !defined(__OpenBSD__) && !defined(__Bitrig__) && !defined(__FreeBSD__)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev