Skip to content
Snippets Groups Projects
Commit f5bf76de authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix mex build system for macOS

parent 93bb326c
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,6 @@ case ${host_os} in
AC_MSG_WARN([not run from MATLAB, because it cannot load the Cygwin DLL.])
AC_MSG_WARN([This is probably not what you want. Consider using a MinGW cross-compiler.])
;;
*darwin13*)
CXXFLAGS="$CXXFLAGS -std=c++11"
;;
esac
CFLAGS="$CFLAGS -Wall -Wno-parentheses"
......@@ -76,6 +73,9 @@ case ${host_os} in
# Also see <uchar.h>
CFLAGS="$CFLAGS -include stdint.h -Dchar16_t=uint_least16_t"
;;
*darwin*)
CXXFLAGS="$CXXFLAGS -stdlib=libc++"
;;
esac
AX_PTHREAD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment