Comments (7)
That's correct.
I have initially focused on using it as a cross compiler, but lately I've also tried to make it a bit more usable on actual native windows. You can have a try of that from https://martin.st/temp/llvm-mingw-x86_64.zip. The tools are wrapped in shell scripts which require running them from within MSYS (and with MSYS based build tools) though, but I'm working on getting away from that requirement.
from llvm-mingw.
@mstorsjo thank you for the prompt reply. I'll test the attached zip and get back to you if it is working for my applications. I see some issues with being forced to run the scripts from the msys terminal for my applications, but I look forward to your progress on this project.
from llvm-mingw.
@mstorsjo maybe you can do some work on getting standalone clang toolchain under msys2?
I'm thinking about adding new filesystem entries /clang{32,64} and provide only clang builds there
from llvm-mingw.
That might be good to look into, yes.
I'm almost done with getting usable windows based toolchains from my all-in-one builds (where I for now cross compile the whole toolchain from linux), hoping that I can serve that as downloadbles soon. After that, some sort of msys2 package would be great for wider adoption.
from llvm-mingw.
do you mind to also provide an elementary readme for beginners on compiling simple programs on windows and linux using this toolchain?
from llvm-mingw.
FWIW, I just uploaded prebuilt binaries of the toolchain here on github; it's similar to the one I linked before, but slightly more polished and with more executables available (without the cross target prefix).
As for readmes on how to compile programs with it; this is mainly targeted at people already familiar with mingw toolchains and how to use them - it's supposed to be more or less a drop-in replacement for them.
In the simplest use case, you can just do clang hello.c -o hello.exe
after adding the right directory to your path, or e.g. aarch64-w64-mingw32-clang hello.c -o hello.exe
to cross compile a binary for ARM64. Other than that, it's very much up to what kind of build system you have for your project; makefiles, cmake, etc. In all cases, it is intended to work just as for other mingw toolchains.
from llvm-mingw.
perfect, that's all I asked for. Thanks again for this contribution.
from llvm-mingw.
Related Issues (20)
- Unable to run the latest docker image HOT 3
- Microsoft Defender reports Trojan in Release llvm-mingw-20231128-msvcrt-i686.zip llvm-size.exe HOT 3
- Treat file content as command line (feature request) HOT 2
- `fcloseall()` is missing (feature request) HOT 6
- DLLs should be available via --print-file-name HOT 4
- What is the difference between this llvm distribution and the one installed from msys2 pacman? HOT 3
- adding split debug info to the release? HOT 1
- -O2 -flto -fcs-profile-generate cause undefined symbol
- Missing `windmc.exe` Message Compiler
- Missing LLVM header files in resulting zip when building with FULL_LLVM=1 HOT 1
- Supporting passing .rc and .res files on command line
- Installation HOT 8
- ld.lld.exe segfaulting HOT 4
- Cannot link executable HOT 2
- [C++20] [Modules] ld.lld: error: undefined symbol: initializer for module HOT 11
- "unable to execute command: program not executable" on Windows HOT 4
- `<triple>-c++` wrappers are provided but `<triple>-cc` are not HOT 4
- Triple naming probably unorthodox HOT 4
- typo in python buildscript HOT 1
- Regression: llvm-mingw-20240502-msvcrt i686: duplicate symbol '_time' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-mingw.