Skip to content

Commit

Permalink
[libc] Add the 'cpp.new' as a dependency on atexit
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jhuber6 committed Aug 21, 2023
1 parent bb44a6b commit a69340d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libc/src/stdlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a69340d

Please sign in to comment.