Skip to content

Fix a dependency between libc++ and malloc/free #12259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/deps_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,6 @@
"glMapBufferRange": ["malloc", "free"],
"glGetString": ["malloc", "free"],
"glGetStringi": ["malloc", "free"],
"syslog": ["malloc", "free"]
"syslog": ["malloc", "free"],
"_ZNKSt3__28ios_base6getlocEv": ["malloc", "free"]
}
2 changes: 2 additions & 0 deletions tests/other/metadce/hello_libcxx_O2.exports
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ dynCall_iiiiij
dynCall_iiiiijj
dynCall_jiji
dynCall_viijii
free
main
malloc
stackAlloc
stackRestore
stackSave
1 change: 1 addition & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5551,6 +5551,7 @@ def test_stdvec(self):
self.do_run_in_out_file_test('tests', 'core', 'test_stdvec.cpp')

def test_random_device(self):
self.maybe_closure()
self.do_run_in_out_file_test('tests', 'core', 'test_random_device.cpp')

def test_reinterpreted_ptrs(self):
Expand Down