[SR-15938] Error when referencing #dsohandle in a Swift test on Windows #58199
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler directives
Feature: compiler directives (#if, #warning, #error, etc.)
compiler
The Swift compiler in itself
platform support
TBDGen
Windows
Platform: Windows
Additional Detail from JIRA
md5: f7e5912816979bdef02552a32331f998
relates to:
Issue Description:
When writing a new Swift test (in the repo), if you reference
#dsohandle
, the build will fail at link time with this error:__ImageBase
is the Windows equivalent of__dso_handle
and is the symbol the compiler transforms#dsohandle
into. It is supposed to be automagically generated by MSVC++ and points to the start of the COFF image being built (much like how__dso_handle
points to the start of the Mach header on Apple platforms.)Note: JIRA is fighting with me in re styling for the symbols I named above. ImageBase should have two leading underscores (and does in the compiler.) If it's showing up with just one, that's a JIRA thing.
The text was updated successfully, but these errors were encountered: