[PATCH] Fixed compiler-rt when outside projects directory

Alexey Samsonov samsonov at google.com
Fri May 24 08:21:17 PDT 2013


LGTM (modulo one comment below). Please submit this if it works for your
configuration where compiler-rt is checked out in different place.
Thanks!

-compiler_rt_lit_cfg = os.path.join(llvm_src_root, "projects",
"compiler-rt",
-                                   "lib", "lit.common.cfg")
+compiler_rt_src_root = getattr(config, 'compiler_rt_src_root', None)
+compiler_rt_lit_cfg = os.path.join(compiler_rt_src_root, "lib",
+                                   "lit.common.cfg")
You would need get_required_attr() here (as in other .cfg files) or check
that attr value is not None




On Fri, May 24, 2013 at 3:42 AM, Greg Fitzgerald <gregf at codeaurora.org>wrote:

> Attached is a patch to fix the compiler-rt build when it is in a directory
> outside “llvm/projects”.  Can you please review?****
>
> ** **
>
> Thanks,****
>
> Greg****
>
> ** **
>
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation****
>
> ** **
>



-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130524/b9123b73/attachment.html>


More information about the llvm-commits mailing list