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

Commit d7ab02b

Browse files
committed
Add an OS variable to posix.mak and disable core/time on freebsd until it can be fixed
1 parent 7d46be0 commit d7ab02b

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

posix.mak

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@
33
# pkg_add -r gmake
44
# and then run as gmake rather than make.
55

6+
ifeq (,$(OS))
7+
OS:=$(shell uname)
8+
ifeq (Darwin,$(OS))
9+
OS:=osx
10+
else
11+
ifeq (Linux,$(OS))
12+
OS:=linux
13+
else
14+
ifeq (FreeBSD,$(OS))
15+
OS:=freebsd
16+
else
17+
$(error Unrecognized or unsupported OS for uname: $(OS))
18+
endif
19+
endif
20+
endif
21+
endif
22+
623
DMD=dmd
724

825
DOCDIR=doc
@@ -499,8 +516,8 @@ $(DRUNTIME): $(OBJS) $(SRCS) win32.mak
499516
unittest : $(addprefix $(OBJDIR)/,$(SRC_D_MODULES)) $(DRUNTIME) $(OBJDIR)/emptymain.d
500517
@echo done
501518

502-
ifeq ($(MODEL),64)
503-
DISABLED_TESTS =
519+
ifeq ($(OS),freebsd)
520+
DISABLED_TESTS = core/time
504521
else
505522
DISABLED_TESTS =
506523
endif

0 commit comments

Comments
 (0)