The Debian GNU/kFreeBSD build currently fails. It is basically Debian with a FreeBSD kernel
Initially it fails with
os/OsUtil.cpp:435:2: error: #error Unexpected Platform/CPU type
I quickly tried adding PLATFORM_FREEBSD:
+#elif defined(__FreeBSD_kernel__)
+ platform = PLATFORM_FREEBSD;
and it subsequently fails here:
os/linux/OsTaskLinux.cpp: In function 'int gettid()':
os/linux/OsTaskLinux.cpp:52:44: error: 'SYS_gettid' was not declared in this scope
static inline int gettid() {return syscall(SYS_gettid);}
Given that PLATFORM_MACOSX exists (and is FreeBSD based) should it be feasible to make a PLATFORM_FREEBSD build?