Re: [cfe-users] complie clang with clang

2017-03-22 Thread Hans Wennborg via cfe-users
I think this should do it: $ CXX=clang++ CC=clang cmake -G "Unix Makefiles" ../llvm $ VERBOSE=1 make -j8 On Wed, Mar 22, 2017 at 5:19 AM, Masaru Tsuchiyama via cfe-users wrote: > Hi. > > Thank you for the replay. > > I could show the command lines with the following steps. > > $ CXX=clang++ CC=c

[cfe-users] BPF stack limit

2017-03-22 Thread Steven Simpson via cfe-users
Hi, I'm using Clang to compile C to eBPF, not to run in the Linux kernel, but in ubpf. I occasionally encounter the error "Looks like the BPF stack limit of 512 bytes is exceeded". The limit seems to be hard-wired (llvm/lib/Target/BPF/BPFRegisterInfo.cpp): if (Offset <= -512) { (I'm us

Re: [cfe-users] complie clang with clang

2017-03-22 Thread Masaru Tsuchiyama via cfe-users
Hi. Thank you for the replay. I could show the command lines with the following steps. $ CXX=clang++ CC=clang cmake -G Ninja ../llvm $ ninja-build -v But I want to do this with make. Could you tell me how? Rest Regards. Duncan P. N. Exon Smith wrote: On 2017-Mar-21, at 06:51, Masaru Tsu

[cfe-users] Get template instantiation pattern for function declaration

2017-03-22 Thread Vlad via cfe-users
Hello,I am trying to collect all template instantiations via traversing AST with RecursiveASTVisitor. I thought I would be able to do it with VisitFunctionDecl from class visitor and getTemplateInstantiationPattern from class FunctionDecl. However, as mentioned in the comment to this method, it ju