[all-commits] [llvm/llvm-project] c2a17b: [libc] Set the stub filename to the target name in...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Tue Mar 14 08:31:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c2a17bff24f0b76c7aedd2f2396eae154c95de60
https://github.com/llvm/llvm-project/commit/c2a17bff24f0b76c7aedd2f2396eae154c95de60
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-03-14 (Tue, 14 Mar 2023)
Changed paths:
M libc/cmake/modules/LLVMLibCObjectRules.cmake
Log Message:
-----------
[libc] Set the stub filename to the target name instead of the source
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`.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D145912
More information about the All-commits
mailing list