SNSystems / llvm-project-prepo

Fork of LLVM with modifications to support a program repository
26 stars 0 forks source link

Installed the compiler-rt in the correct directory. #157

Closed MaggieYingYi closed 3 years ago

MaggieYingYi commented 3 years ago

When I added the repo toolchain in the clang driver, I found the compiler-rt library should be installed in the "\~/LLVM/lib/clang/11.0.0" install of "~/LLVM" directory. In addition, the clang driver will automatically link the clang_rt.crtbegin-x86_64.o and clang_rt.crtend-x86_64.o when using compiler-rt runtime library.

The commit includes: 1) Installed the compiler-rt library to "~/LLVM/lib/clang/11.0.0/lib/linux". 2) When building compiler-rt on repo, the clang_rt.crtbegin-x86_64.o and clang_rt.crtend-x86_64.o are ticket files. When building compiler-rt on elf using repo2obj, the clang_rt.crtbegin-x86_64.t and clang_rt.crtend-x86_64.t are ticket files, the clang_rt.crtbegin-x86_64.o and clang_rt.crtend-x86_64.o are elf files.

MaggieYingYi commented 3 years ago

I have followed the right method mentioned in rules-multiple-outputs-gnu-make to update the Makefile, which generates multiple outputs from a single command by using a pattern rule with multiple outputs in the commit https://github.com/SNSystems/llvm-project-prepo/commit/3ff725449dc46c458f08ceda677a6f22c278eff7.