You are not logged in.
Pages: 1
Okay, I know that in order to compile software written in C with llvm instead of gcc, I use this command before compiling:
alias llvmc=gcc
What do I do if I want to compile software written in C++ using llvm instead of g++ ?
Offline
Do you mean using C++ instead of C? If so, replace gcc with g++
Offline
Okay, I know that in order to compile software written in C with llvm instead of gcc, I use this command before compiling:
alias llvmc=gcc
What do I do if I want to compile software written in C++ using llvm instead of g++ ?
Forgive me, but I don't think that line does what you say it does. How are you compiling software?
Offline
Offline
I think Trent means that the alias you have makes gcc run when llvm is executed, not the other way around. With
alias gcc=llvm
llvm is run where gcc would normally have been.
If you want llvm to run instead of g++, you can alias g++ just as easily
alias g++=llvm
(I asssume you're using bash?)
Last edited by jac (2010-06-14 20:40:17)
Offline
Offline
Instead of aliasing gcc and c++, I'd use the CC and CXX environmental variables for C and C++ respectively in makepkg.conf. I can't remember off of the top of my head if they need to exported or not.
Offline
Well, aliasing is preferred because some software, such as wine and chromium, will not compile under llvm, so I'd prefer to use it explicitly rather than by default.
Offline
Anyone tried the LLL tool chain to compile the Linux kernel with LLVM/Clang?
I was planning to try to make a self-hosting (Clang-compiled) AURs for it, but I have not come around to it yet...
https://github.com/brycelelbach/lll
https://github.com/brycelelbach/lll-llvm
https://github.com/brycelelbach/lll-linux
https://github.com/brycelelbach/lll-clang
It made quite a splash when this guy announced that Linux could be compiled with Clang....
My AUR packages
Any package of mine is up for grabs. If you think you could mantain it better - just contact me!
Offline
Pages: 1