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
License
bltb/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 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 "w32-clang", "w32-clang++", "w64-clang" and "w64-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 INSTALLATION: ./bootstrap.sh ./configure make make install UPDATING: If you are updating a previous installed wclang installation, then don't forget to re-run ./bootstrap.sh, otherwise ./configure will most likely fail. EXAMPLES: w32-clang++ hello-world.cpp -o hello-world.exe && wine hello-world CC=w32-clang ./configure --host=`w32-clang -wc-target` LISTING AVAILABLE PARAMETERS: w32-clang -wc-help KNOWN TO WORK ON: ubuntu, debian (wheezy*), mint, arch, fedora others dists may work too, but have not been tested * 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
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C++ 93.3%
- Shell 6.4%
- C 0.3%