[libc-commits] [libc] a69340d - [libc] Add the 'cpp.new' as a dependency on `atexit`
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Mon Aug 21 13:08:14 PDT 2023
Author: Joseph Huber
Date: 2023-08-21T15:08:04-05:00
New Revision: a69340dd810e327a3e431cb73adaa2d5b2b22ef9
URL: https://github.com/llvm/llvm-project/commit/a69340dd810e327a3e431cb73adaa2d5b2b22ef9
DIFF: https://github.com/llvm/llvm-project/commit/a69340dd810e327a3e431cb73adaa2d5b2b22ef9.diff
LOG: [libc] Add the 'cpp.new' as a dependency on `atexit`
The `atexit` function depends on the implementations in CPP/new.h but it
is not listed as a dependency. This causes the GPU build to not include
it in the `libcgpu.a` file and prevents us from using the startup code
externally. Simply add it.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D158447
Added:
Modified:
libc/src/stdlib/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/src/stdlib/CMakeLists.txt b/libc/src/stdlib/CMakeLists.txt
index 9b868bab05ae74..c54d32eb7afdb1 100644
--- a/libc/src/stdlib/CMakeLists.txt
+++ b/libc/src/stdlib/CMakeLists.txt
@@ -366,6 +366,7 @@ add_entrypoint_object(
libc.src.__support.fixedvector
libc.src.__support.blockstore
libc.src.__support.threads.mutex
+ libc.src.__support.CPP.new
)
add_entrypoint_object(
More information about the libc-commits
mailing list