[vbox-dev] [PATCH] Support building on macOS 10.14 Mojave
James Clarke
jrtc27 at jrtc27.com
Sat Jun 30 16:00:52 GMT 2018
With this patch VBoxDrv can be built on macOS 10.14 Mojave, and if the
version number is bumped to 5.3 or above (to work around Apple's
blacklist), the module can be loaded and works just fine.
Index: configure
===================================================================
--- configure (revision 72730)
+++ configure (working copy)
@@ -2175,6 +2175,14 @@
test_header "Darwin version"
darwin_ver=`uname -r`
case "$darwin_ver" in
+ 18\.*)
+ check_xcode_sdk_path "$WITH_XCODE_DIR"
+ [ $? -eq 1 ] || fail
+ darwin_ver="10.14" # Mojave
+ sdk=$WITH_XCODE_DIR/Developer/SDKs/MacOSX10.6.sdk
+ cnf_append "VBOX_WITH_MACOSX_COMPILERS_FROM_DEVEL" "1"
+ cnf_append "VBOX_PATH_MACOSX_DEVEL_ROOT" "$WITH_XCODE_DIR/Developer"
+ ;;
17\.*)
check_xcode_sdk_path "$WITH_XCODE_DIR"
[ $? -eq 1 ] || fail
Index: include/iprt/assertcompile.h
===================================================================
--- include/iprt/assertcompile.h (revision 72730)
+++ include/iprt/assertcompile.h (working copy)
@@ -74,8 +74,11 @@
# define RTASSERT_HAVE_STATIC_ASSERT
#endif
#if RT_CLANG_PREREQ(6, 0)
-# if __has_feature(cxx_static_assert) || __has_feature(c_static_assert)
+# if __has_feature(cxx_static_assert)
# define RTASSERT_HAVE_STATIC_ASSERT
+# elif __has_feature(c_static_assert)
+# define static_assert _Static_assert
+# define RTASSERT_HAVE_STATIC_ASSERT
# endif
#endif
#ifdef DOXYGEN_RUNNING
More information about the vbox-dev
mailing list