Syed Rafiul Hussain via llvm-dev
2016-Apr-06 17:48 UTC
[llvm-dev] Compile DSA without poolalloc and add it as a dependency to my pass running on llvm-3.8
Hi, Can anyone please suggest me how can I compile DSA without poolalloc and add it as a dependency to my pass running on llvm-3.8? Thanks -- Syed Rafiul Hussain
John Criswell via llvm-dev
2016-Apr-06 17:53 UTC
[llvm-dev] Compile DSA without poolalloc and add it as a dependency to my pass running on llvm-3.8
On 4/6/16 1:48 PM, Syed Rafiul Hussain via llvm-dev wrote:> Hi, > > Can anyone please suggest me how can I compile DSA without poolalloc > and add it as a dependency to my pass running on llvm-3.8? > > ThanksYou can remove the Poolallocate directory from directories to compile in poolalloc/lib/Makefile to skip compiling poolalloc (you can also remove tools from the list of directories in poolalloc/Makefile). As the LLVM 3.8 build machinery has changed, I'm not sure how to best add the DSA libraries to your dependencies. The SAFECode Makefiles have special targets that copy the DSA libraries from the poolalloc Debug/Release directories into the SAFECode Debug/Release directories; the regular Makefile machinery then allows you to link in the DSA libraries as if they had been compiled within the SAFECode source code. In the worst case, you can probably hack around the issue by adding -L and -l options to your Makefile with hard-coded paths to where the DSA libraries are built. That can at least get you going until a better solution is found. Sorry for the short answer, but I have to go teach class. Regards, John Criswell -- John Criswell Assistant Professor Department of Computer Science, University of Rochester http://www.cs.rochester.edu/u/criswell