Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Can AppBuilder compile with CLANG?

$
0
0

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

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>