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

Commit

Permalink
Fix rt/dmain2 to properly declare one missing symbol (probably visibl…
Browse files Browse the repository at this point in the history
…e due to bug 314 while building the whole library but not when building the unittest.

Start building druntime with -O on 64 bit, everything passes now
  • Loading branch information
braddr committed Jan 11, 2011
1 parent c235d81 commit 24ce958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 2 additions & 11 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@ IMPDIR=import

MODEL=32

ifeq ($(MODEL),64)
DFLAGS=-m$(MODEL) -release -inline -nofloat -w -d -Isrc -Iimport
UDFLAGS=-m$(MODEL) -release -nofloat -w -d -Isrc -Iimport

CFLAGS=-m$(MODEL)
else
DFLAGS=-m$(MODEL) -O -release -inline -nofloat -w -d -Isrc -Iimport
UDFLAGS=-m$(MODEL) -O -release -nofloat -w -d -Isrc -Iimport

CFLAGS=-m$(MODEL) -O
endif

OBJDIR=obj
DRUNTIME_BASE=druntime
Expand Down Expand Up @@ -402,11 +395,9 @@ unittest : $(addprefix $(OBJDIR)/,$(SRC_D_MODULES)) $(DRUNTIME) $(OBJDIR)/emptym
@echo done

ifeq ($(MODEL),64)
DISABLED_TESTS = \
rt/dmain2
DISABLED_TESTS =
else
DISABLED_TESTS = \
rt/dmain2
DISABLED_TESTS =
endif

$(addprefix $(OBJDIR)/,$(DISABLED_TESTS)) :
Expand Down
4 changes: 3 additions & 1 deletion src/rt/dmain2.d
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ version (all)
}
_d_unhandled = t;
}


extern (C) Throwable.TraceInfo _d_traceContext(void* ptr = null);

extern (C) void _d_createTrace(Object *o)
{
auto t = cast(Throwable) o;
Expand Down

0 comments on commit 24ce958

Please sign in to comment.