Skip to content

Commit 2dfb8c9

Browse files
committed
revert adding COREBUNDLE_BUILD.
1 parent e24cba7 commit 2dfb8c9

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

src/coreclr/src/dlls/mscoree/mscoree.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,6 @@ STDAPI GetCORSystemDirectoryInternaL(SString& pBuffer)
326326
HRESULT hr = S_OK;
327327
BEGIN_ENTRYPOINT_NOTHROW;
328328

329-
LPCWSTR systemPath = Configuration::GetKnobStringValue(W("OVERRIDE_SYSTEM_PATH"));
330-
if (systemPath != nullptr)
331-
{
332-
pBuffer.Set(systemPath);
333-
return hr;
334-
}
335-
336329
#ifdef CROSSGEN_COMPILE
337330

338331
if (WszGetModuleFileName(NULL, pBuffer) > 0)

src/coreclr/src/hosts/unixcoreruncommon/coreruncommon.cpp

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,6 @@ namespace
360360
coreclr_shutdown_2_ptr * shutdownCoreCLR,
361361
const char* clrFilesAbsolutePath)
362362
{
363-
//TODO: WIP remove COREBUNDLE_BUILD
364-
#ifdef COREBUNDLE_BUILD
365-
* initializeCoreCLR = coreclr_initialize;
366-
*executeAssembly = coreclr_execute_assembly;
367-
*shutdownCoreCLR = coreclr_shutdown_2;
368-
#else
369363
std::string coreClrDllPath(clrFilesAbsolutePath);
370364
coreClrDllPath.append("/");
371365
coreClrDllPath.append(coreClrDll);
@@ -404,7 +398,7 @@ namespace
404398
fprintf(stderr, "Function coreclr_shutdown_2 not found in the libcoreclr.so\n");
405399
return false;
406400
}
407-
#endif
401+
408402
return true;
409403
}
410404
}
@@ -471,13 +465,9 @@ int ExecuteManagedAssembly(
471465
coreclr_shutdown_2_ptr shutdownCoreCLR;
472466
if (!GetCoreClrFunctions(&initializeCoreCLR, &executeAssembly, &shutdownCoreCLR, clrFilesAbsolutePath))
473467
return -1;
474-
#ifdef COREBUNDLE_BUILD
475-
bool useServerGcDefault = true;
476-
#else
477-
bool useServerGcDefault = false;
478-
#endif
479468

480469
// Check whether we are enabling server GC (off by default)
470+
bool useServerGcDefault = false;
481471
const char* useServerGc = GetEnvValueBoolean(serverGcVar, useServerGcDefault);
482472

483473
// Check Globalization Invariant mode (false by default)
@@ -506,9 +496,6 @@ int ExecuteManagedAssembly(
506496
"NATIVE_DLL_SEARCH_DIRECTORIES",
507497
"System.GC.Server",
508498
"System.Globalization.Invariant",
509-
#ifdef COREBUNDLE_BUILD
510-
"OVERRIDE_SYSTEM_PATH",
511-
#endif
512499
};
513500
const char *propertyValues[] = {
514501
// TRUSTED_PLATFORM_ASSEMBLIES
@@ -523,9 +510,6 @@ int ExecuteManagedAssembly(
523510
useServerGc,
524511
// System.Globalization.Invariant
525512
globalizationInvariant,
526-
#ifdef COREBUNDLE_BUILD
527-
clrFilesAbsolutePath,
528-
#endif
529513
};
530514

531515
void* hostHandle;

0 commit comments

Comments
 (0)