Permalink
Browse files

Fix rt/dmain2 to properly declare one missing symbol (probably visibl…

…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...
1 parent c235d81 commit 24ce9586be3a3238c9d96d05b681a2ff039bfb0e @braddr braddr committed Jan 11, 2011
Showing with 5 additions and 12 deletions.
  1. +2 −11 posix.mak
  2. +3 −1 src/rt/dmain2.d
View
@@ -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
@@ -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)) :
View
@@ -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;

0 comments on commit 24ce958

Please sign in to comment.