mirror of
https://github.com/darlinghq/darling-dyld.git
synced 2024-11-23 04:19:41 +00:00
Don't Run Shared Cache Code When Building For Darling
This commit is contained in:
parent
8b70f1be03
commit
cad0df199e
@ -6778,6 +6778,11 @@ _main(const macho_header* mainExecutableMH, uintptr_t mainExecutableSlide,
|
|||||||
if ( sJustBuildClosure )
|
if ( sJustBuildClosure )
|
||||||
sClosureMode = ClosureMode::On;
|
sClosureMode = ClosureMode::On;
|
||||||
|
|
||||||
|
#ifndef DARLING
|
||||||
|
// While the shared cache code doesn't prevent Darling's libraries
|
||||||
|
// from being loaded, we don't plan on building our libraries
|
||||||
|
// into a shared cache.
|
||||||
|
|
||||||
// load shared cache
|
// load shared cache
|
||||||
checkSharedRegionDisable((dyld3::MachOLoaded*)mainExecutableMH, mainExecutableSlide);
|
checkSharedRegionDisable((dyld3::MachOLoaded*)mainExecutableMH, mainExecutableSlide);
|
||||||
if ( gLinkContext.sharedRegionMode != ImageLoader::kDontUseSharedRegion ) {
|
if ( gLinkContext.sharedRegionMode != ImageLoader::kDontUseSharedRegion ) {
|
||||||
@ -6795,6 +6800,7 @@ _main(const macho_header* mainExecutableMH, uintptr_t mainExecutableSlide,
|
|||||||
(gLinkContext.verboseMapping ? &dyld::log : nullptr));
|
(gLinkContext.verboseMapping ? &dyld::log : nullptr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // !DARLING
|
||||||
|
|
||||||
#if !TARGET_OS_SIMULATOR && !defined(DARLING)
|
#if !TARGET_OS_SIMULATOR && !defined(DARLING)
|
||||||
if ( getpid() == 1 ) {
|
if ( getpid() == 1 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user