The GPU target requires some weird special case handling to create fat
binaries. CMake offers no way to set the name of an object library. The
only way to do this is to create a file with the desired name and use
that. Currently we name it after the source filename. However, this
breaks if there is more than a single source. This patch changes the
logic to instead look up the object target name and use that. E.g.
src.__support.OSUtil.osutil will be osutil.cpp.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/cmake/modules/LLVMLibCObjectRules.cmake | ||
---|---|---|
88–115 | Nit: Local vars are given names in the lower case snake_case style. So, here, it could just be gpu_obj_src. |
Nit: Local vars are given names in the lower case snake_case style. So, here, it could just be gpu_obj_src.