arphaman added inline comments.

================
Comment at: compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:509
     set(DARWIN_macho_embedded_LIBRARY_OUTPUT_DIR
-      ${COMPILER_RT_OUTPUT_DIR}/lib/macho_embedded)
+      ${COMPILER_RT_OUTPUT_LIBRARY_DIR}/macho_embedded)
     set(DARWIN_macho_embedded_LIBRARY_INSTALL_DIR
----------------
Ericson2314 wrote:
> arphaman wrote:
> > It looks like this change broke the `macho_embedded` layout for Darwin's 
> > compiler-rt build, so now the clang driver isn unable to find these 
> > libraries.
> > 
> > I will commit a change that uses `COMPILER_RT_OUTPUT_DIR` again for the 
> > `macho_embedded` libraries.
> Can you help me understand this better? `COMPILER_RT_OUTPUT_LIBRARY_DIR` 
> should be defined to be the same thing unless target-specific directories are 
> used, Is the problem in the latter case?
The problem is that Darwin was emitting `macho_embedded` libraries under 
`usr/lib/clang/<version>/lib/darwin/macho_embedded`, but this change moved them 
to `usr/lib/clang/<version>/lib/macho_embedded`, so now the clang driver isn't 
able to find them.

I think using `COMPILER_RT_OUTPUT_LIBRARY_DIR` is the right thing, but we still 
want to be compatible with the existing layout unless we change the driver. I 
think changing the driver might be a better approach though, so I will try that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105765/new/

https://reviews.llvm.org/D105765

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D105765: Prepare Compi... Alex Lorenz via Phabricator via cfe-commits

Reply via email to