forked from tpoechtrager/wclang
-
Notifications
You must be signed in to change notification settings - Fork 0
Cross compile source code easily for Windows with clang on Linux/Unix
License
svost/wclang
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Wclang is a tool which helps you to cross compile source code easily with clang on Linux/Unix for Windows. Wclang is basically a wrapper for clang, which allows you to directly target Windows. Wclang detects the target and headers automatically and adds them to the clang invocation command. After the installation you will have "<mingw-triplet>-clang", "<mingw-triplet>-clang++" available as "compiler". PREREQUISITES: A C++11 compiler for compiling the wrapper (g++ 4.6+, clang) clang mingw-w64 with its headers and libs cmake INSTALLATION: cmake -DCMAKE_INSTALL_PREFIX=_prefix_ . make make install EXAMPLES: i686-w64-mingw32-clang++ hello-world.cpp -o hello-world.exe && wine hello-world CC=i686-w64-mingw32-clang ./configure --host=i686-w64-mingw32 x86_64-w64-mingw32-clang++ hello-world.cpp -o hello-world.exe && wine hello-world CC=x86_64-w64-mingw32-clang ./configure --host=x86-64-w64-mingw32 LISTING AVAILABLE PARAMETERS: i686-w64-clang -wc-help LIMITATIONS: C++ exceptions do not work with clang prior to 3.7, and in 3.7 (current trunk) just for 64-bit. KNOWN TO WORK ON: Linux: Ubuntu, Debian (Wheezy*), Mint, Arch, Fedora and openSUSE. Other distributions may work as well, but have not been tested. Windows: Cygwin. * Wheezy: important: clang-3.0 coming with wheezy is too old to compile the wrapper, so use g++ or get a newer clang from e.g.: http://llvm.org/apt.
About
Cross compile source code easily for Windows with clang on Linux/Unix
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C++ 84.2%
- CMake 15.1%
- Other 0.7%