Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions compiler/src/dmd/glue/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -1259,15 +1259,7 @@ private void obj_start(ref OutBuffer objbuf, const(char)* srcfile)
rtlsym_reset();
clearStringTab();

version (Windows)
{
import dmd.backend.mscoffobj;
objmod = MsCoffObj_init(&objbuf, srcfile, null);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems to be the only call of that function?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The call is hidden in the mixin at

mixin(genRetVal("init(objbuf, filename, csegname)"));

}
else
{
objmod = Obj.initialize(&objbuf, srcfile, null);
}
objmod = Obj.initialize(&objbuf, srcfile, null);

OutBuffer buf;
buf.write("DMD ");
Expand Down
5 changes: 4 additions & 1 deletion compiler/test/compilable/objc_class.d
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// EXTRA_OBJC_SOURCES:
// also check cross compilation, ensure targeting 64-bit
// REQUIRED_ARGS: -m64 -os=osx
// doesn't compile with mingw option -mscrtlib=msvcrt120
// DISABLED: win32

import core.attribute : selector;

Expand Down
Loading