Skip to content

Commit

Permalink
Revert "Build cross OS DACs in default Windows builds (#32322)" (#32781)
Browse files Browse the repository at this point in the history
This reverts commit 7d4e1bb.
  • Loading branch information
hoyosjs authored Feb 25, 2020
1 parent 7182559 commit 671b2ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
23 changes: 0 additions & 23 deletions src/coreclr/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,6 @@ REM Determine if this is a cross-arch build. Only do cross-arch build if we're a

if %__SkipCrossArchNative% EQU 0 (
if %__BuildNative% EQU 1 (
if %__BuildCrossArchNative% EQU 0 (
if /i not "%__BuildArch%"=="x86" (
REM Make recursive calls to build the cross OS DAC
call :BuildCrossOSDac -linuxdac
if not !errorlevel! == 0 (
goto ExitWithError
)
)
)
if /i "%__BuildArch%"=="arm64" (
set __BuildCrossArchNative=1
)
Expand Down Expand Up @@ -907,20 +898,6 @@ exit /b 1
:ExitWithCode
exit /b !__exitCode!

:BuildCrossOSDac
setlocal
set __BuildDacOption=%1
set __NextCmd=call %__ThisScriptFull% %__BuildDacOption% %__BuildArch% %__BuildType% %__PassThroughArgs%
echo %__MsgPrefix%Invoking: %__NextCmd%
%__NextCmd%
if not !errorlevel! == 0 (
echo %__MsgPrefix% %__BuildDacOption% %__BuildArch% %__BuildType% %__PassThroughArgs%
endlocal
goto ExitWithError
)
endlocal
exit /b 0

:Usage
echo.
echo Build the CoreCLR repo.
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/src/debug/daccess/enummem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ HRESULT ClrDataAccess::EnumMemCLRStatic(IN CLRDataEnumMemoryFlags flags)
return hr;
}
// Add the dac table memory in coreclr
CATCH_ALL_EXCEPT_RETHROW_COR_E_OPERATIONCANCELLED ( ReportMem((TADDR)dacTableAddress, sizeof(g_dacGlobals)); )
CATCH_ALL_EXCEPT_RETHROW_COR_E_OPERATIONCANCELLED ( ReportMem(dacTableAddress, sizeof(g_dacGlobals)); )
#endif

// Cannot use CATCH_ALL_EXCEPT_RETHROW_COR_E_OPERATIONCANCELLED
Expand Down
4 changes: 3 additions & 1 deletion src/coreclr/src/debug/dbgutil/elfreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
#define PRId PRId64
#define PRIA "016"
#define PRIxA PRIA PRIx
#define TARGET_WORDSIZE 64
#else
#define PRIx PRIx32
#define PRIu PRIu32
#define PRId PRId32
#define PRIA "08"
#define PRIxA PRIA PRIx
#define TARGET_WORDSIZE 32
#endif

#ifdef HOST_UNIX
Expand Down Expand Up @@ -279,7 +281,7 @@ uint32_t
ElfReader::Hash(const std::string& symbolName)
{
uint32_t h = 5381;
for (unsigned int i = 0; i < symbolName.length(); i++)
for (int i = 0; i < symbolName.length(); i++)
{
h = (h << 5) + h + symbolName[i];
}
Expand Down
6 changes: 0 additions & 6 deletions src/coreclr/src/debug/dbgutil/elfreader.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
#include <string>
#include <vector>

#if TARGET_64BIT
#define TARGET_WORDSIZE 64
#else
#define TARGET_WORDSIZE 32
#endif

#ifndef ElfW
/* We use this macro to refer to ELF types independent of the native wordsize.
`ElfW(TYPE)' is used in place of `Elf32_TYPE' or `Elf64_TYPE'. */
Expand Down

0 comments on commit 671b2ef

Please sign in to comment.