Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #355 from braddr/win64-changes
Browse files Browse the repository at this point in the history
changes to build and pass unittests
  • Loading branch information
WalterBright committed Nov 23, 2012
2 parents 0937b40 + cef9bd5 commit f19509c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/core/bitop.d
Expand Up @@ -289,13 +289,19 @@ unittest
{
version (AsmX86)
{
asm { naked; }

version (D_InlineAsm_X86_64)
asm { naked; mov EAX, EDI; }
{
version (Win64)
asm { mov EAX, ECX; }
else
asm { mov EAX, EDI; }
}

asm
{
// Author: Tiago Gasiba.
naked;
mov EDX, EAX;
shr EAX, 1;
and EDX, 0x5555_5555;
Expand Down
4 changes: 4 additions & 0 deletions src/core/thread.d
Expand Up @@ -4307,6 +4307,9 @@ else
}


version(Win64) {}
else {

version( unittest )
{
class TestFiber : Fiber
Expand Down Expand Up @@ -4512,6 +4515,7 @@ unittest
expect(fib, "delegate");
}

}

version( AsmX86_64_Posix )
{
Expand Down
2 changes: 1 addition & 1 deletion win64.mak
Expand Up @@ -889,7 +889,7 @@ $(DRUNTIME): $(OBJS) $(SRCS) win$(MODEL).mak
$(DMD) -lib -of$(DRUNTIME) -Xfdruntime.json $(DFLAGS) $(SRCS) $(OBJS)

unittest : $(SRCS) $(DRUNTIME) src\unittest.d
$(DMD) $(UDFLAGS) -L/co -version=druntime_unittest -unittest src\unittest.d $(SRCS) $(DRUNTIME) -debuglib=$(DRUNTIME) -defaultlib=$(DRUNTIME)
$(DMD) $(UDFLAGS) -version=druntime_unittest -unittest src\unittest.d $(SRCS) $(DRUNTIME) -debuglib=$(DRUNTIME) -defaultlib=$(DRUNTIME) user32.lib

zip: druntime.zip

Expand Down

0 comments on commit f19509c

Please sign in to comment.