Skip to content

[clr-interp] Interpreter doesn't build with Release #121023

@hez2010

Description

@hez2010

Description

src\coreclr\vm\amd64\asmconstants.h(576): error C2607 static assertion failure

at

#ifdef TARGET_UNIX
#define OFFSETOF__Thread__m_pInterpThreadContext 0xb50
#else // TARGET_UNIX
#define OFFSETOF__Thread__m_pInterpThreadContext 0xba8
#endif // TARGET_UNIX
ASMCONSTANTS_C_ASSERT(OFFSETOF__Thread__m_pInterpThreadContext == offsetof(Thread, m_pInterpThreadContext))

Reproduction Steps

Change set(FEATURE_INTERPRETER $<IF:$<CONFIG:Debug,Checked>,1,0>) to set(FEATURE_INTERPRETER 1) in clrfeatures.cmake and build the coreclr with Release config

Expected behavior

coreclr builds

Actual behavior

build failure with static assertiong failure

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions