I have a plugin with C++ code that uses C++11 libraries (std::function, std::thread,.. etc). It doesn't build and
I have tried adding <framework src="libc++.dylib" /> but it doesn't help,
I have tried adding compiler-flags="-std=c++11 -stdlib=libc++" to <source-file /> but it breaks AppBuilder compilation completely.
From what I found, XCode can compile with CLANG and link with libc++, but how do I do that through plugin.xml file?
Here's an example of what code I am trying to get to compile into the plugin:
$ cat cpptest.cpp#include <chrono>#include <thread>#include <functional>#include <mutex>intmain() { return0;}$ clang -o cpptest -std=c++11 -stdlib=libc++ cpptest.cpp$ echo $?0