On macOS use gcc-7 from homebrew instead of gcc-clang.
To install this version of gcc: ~$ brew install gcc@7 Does not seem to work with gcc-8 (missing headers…).issue#70
parent
ea76bc8636
commit
8b81474a2e
|
@ -2236,6 +2236,7 @@ ModelTree::compileDll(const string &basename, const string &static_or_dynamic, c
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// macOS
|
// macOS
|
||||||
|
compiler = "/usr/local/bin/gcc-7";
|
||||||
string archs = (mexext == "maci" ? "i386" : "x86_64");
|
string archs = (mexext == "maci" ? "i386" : "x86_64");
|
||||||
flags << " -fno-common -arch " << archs << " -mmacosx-version-min=10.7 -Wl,-twolevel_namespace -undefined error -bundle";
|
flags << " -fno-common -arch " << archs << " -mmacosx-version-min=10.7 -Wl,-twolevel_namespace -undefined error -bundle";
|
||||||
libs += " -lm -lstdc++";
|
libs += " -lm -lstdc++";
|
||||||
|
|
Loading…
Reference in New Issue