Skip to content

Commit

Permalink
Merge pull request #1145 from darlinghq/relocate_libmalloc
Browse files Browse the repository at this point in the history
Relocate `libmalloc` Into Seperate Repo
  • Loading branch information
CuriousTommy authored Apr 4, 2022
2 parents 156c306 + 8d343d3 commit d1ea90a
Show file tree
Hide file tree
Showing 89 changed files with 15 additions and 30,202 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,6 @@
[submodule "src/external/pyobjc"]
path = src/external/pyobjc
url = ../darling-pyobjc.git
[submodule "src/external/libmalloc"]
path = src/external/libmalloc
url = https://github.com/darlinghq/darling-libmalloc.git

This file was deleted.

2 changes: 1 addition & 1 deletion Developer/symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ln -sf "$BUILD/src/libremovefile/libremovefile.dylib" "$LIBS/system"
ln -sf "$BUILD/src/copyfile/libcopyfile.dylib" "$LIBS/system"
ln -sf "$BUILD/src/libsystem_coreservices/libsystem_coreservices.dylib" "$LIBS/system"
ln -sf "$BUILD/src/external/coretls/libsystem_coretls.dylib" "$LIBS/system"
ln -sf "$BUILD/src/libmalloc/libsystem_malloc.dylib" "$LIBS/system"
ln -sf "$BUILD/src/external/libmalloc/libsystem_malloc.dylib" "$LIBS/system"
ln -sf "$BUILD/src/libc/libsystem_c.dylib" "$LIBS/system"
ln -sf "$BUILD/src/kernel/libsystem_kernel.dylib" "$LIBS/system"
ln -sf "$BUILD/src/keymgr/libkeymgr.dylib" "$LIBS/system"
Expand Down
2 changes: 1 addition & 1 deletion cmake/use_ld64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ FUNCTION(use_ld64 target)
-Wl,-dylib_file,/usr/lib/libresolv.9.dylib:${CMAKE_BINARY_DIR}/src/libresolv/libresolv.9.dylib \
-Wl,-dylib_file,/usr/lib/system/libxpc.dylib:${CMAKE_BINARY_DIR}/src/external/libxpc/libxpc_firstpass.dylib \
-Wl,-dylib_file,/usr/lib/libc++.1.dylib:${CMAKE_BINARY_DIR}/src/external/libcxx/libc++.1.dylib \
-Wl,-dylib_file,/usr/lib/system/libsystem_malloc.dylib:${CMAKE_BINARY_DIR}/src/libmalloc/libsystem_malloc_firstpass.dylib \
-Wl,-dylib_file,/usr/lib/system/libsystem_malloc.dylib:${CMAKE_BINARY_DIR}/src/external/libmalloc/libsystem_malloc_firstpass.dylib \
-Wl,-dylib_file,/usr/lib/libobjc.A.dylib:${CMAKE_BINARY_DIR}/src/external/objc4/runtime/libobjc.A.dylib \
-Wl,-dylib_file,/usr/lib/libicucore.A.dylib:${CMAKE_BINARY_DIR}/src/external/icu/icuSources/libicucore.A.dylib \
-Wl,-dylib_file,/usr/lib/libncurses.5.4.dylib:${CMAKE_BINARY_DIR}/src/ncurses/ncurses/libncurses.5.4.dylib \
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ add_subdirectory(libgcc)
add_subdirectory(copyfile)
add_subdirectory(libinfo)
add_subdirectory(quarantine)
add_subdirectory(libmalloc)
add_subdirectory(external/libmalloc)
add_subdirectory(libunwind)
add_subdirectory(networkextension)
add_subdirectory(libsystem)
Expand Down
1 change: 1 addition & 0 deletions src/external/libmalloc
Submodule libmalloc added at b3cb23
4 changes: 2 additions & 2 deletions src/libc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ include_directories(
"${CMAKE_CURRENT_SOURCE_DIR}/fbsdcompat"
"${CMAKE_CURRENT_SOURCE_DIR}/darwin"
"${CMAKE_CURRENT_SOURCE_DIR}/derived"
"${CMAKE_CURRENT_SOURCE_DIR}/../libmalloc/src"
"${CMAKE_CURRENT_SOURCE_DIR}/../libmalloc/private"
"${CMAKE_CURRENT_SOURCE_DIR}/../external/libmalloc/src"
"${CMAKE_CURRENT_SOURCE_DIR}/../external/libmalloc/private"
"${CMAKE_CURRENT_SOURCE_DIR}/locale"
"${CMAKE_CURRENT_SOURCE_DIR}/gen"
"${CMAKE_CURRENT_SOURCE_DIR}/locale/FreeBSD"
Expand Down
126 changes: 0 additions & 126 deletions src/libmalloc/.clang-format

This file was deleted.

3 changes: 0 additions & 3 deletions src/libmalloc/.gitignore

This file was deleted.

56 changes: 0 additions & 56 deletions src/libmalloc/CMakeLists.txt

This file was deleted.

56 changes: 0 additions & 56 deletions src/libmalloc/include/malloc/_malloc.h

This file was deleted.

Loading

0 comments on commit d1ea90a

Please sign in to comment.