Giter Club home page Giter Club logo

Comments (7)

mstorsjo avatar mstorsjo commented on July 20, 2024

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.

musm avatar musm commented on July 20, 2024

@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.

Alexpux avatar Alexpux commented on July 20, 2024

@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.

mstorsjo avatar mstorsjo commented on July 20, 2024

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.

musm avatar musm commented on July 20, 2024

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.

mstorsjo avatar mstorsjo commented on July 20, 2024

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.

musm avatar musm commented on July 20, 2024

perfect, that's all I asked for. Thanks again for this contribution.

from llvm-mingw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.