Skip to content

Commit a332043

Browse files
author
Eric Holk
committed
Updating to build on Linux and Mac, and hopefully Windows too.
1 parent b2dad8a commit a332043

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

mk/rt.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUNTIME_CS := rt/sync/timer.cpp \
3333

3434
RUNTIME_LL :=
3535

36-
RUNTIME_S := rt/arch/i386/_context.s
36+
RUNTIME_S := rt/arch/i386/_context.S
3737

3838
RUNTIME_HDR := rt/globals.h \
3939
rt/rust.h \
@@ -67,14 +67,14 @@ RUNTIME_HDR := rt/globals.h \
6767
RUNTIME_DEF := rt/rustrt$(CFG_DEF_SUFFIX)
6868
RUNTIME_INCS := -I $(S)src/rt/isaac -I $(S)src/rt/uthash \
6969
-I $(S)src/rt/arch/i386 -I $(S)src/rt/libuv/include
70-
RUNTIME_OBJS := $(RUNTIME_CS:.cpp=.o) $(RUNTIME_LL:.ll=.o) $(RUNTIME_S:.s=.o)
70+
RUNTIME_OBJS := $(RUNTIME_CS:.cpp=.o) $(RUNTIME_LL:.ll=.o) $(RUNTIME_S:.S=.o)
7171
RUNTIME_LIBS := rt/libuv/uv.a
7272

7373
rt/%.o: rt/%.cpp $(MKFILES)
7474
@$(call E, compile: $@)
7575
$(Q)$(call CFG_COMPILE_C, $@, $(RUNTIME_INCS)) $<
7676

77-
rt/%.o: rt/%.s $(MKFILES)
77+
rt/%.o: rt/%.S $(MKFILES)
7878
@$(call E, compile: $@)
7979
$(Q)$(call CFG_COMPILE_C, $@, $(RUNTIME_INCS)) $<
8080

src/rt/arch/i386/_context.s renamed to src/rt/arch/i386/_context.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,8 @@ swap_registers:
7878
.globl task_trampoline
7979
task_trampoline:
8080
// This gets set up by std::task::_spawn.
81+
#ifdef __APPLE__
8182
call _task_exit
83+
#else
84+
call task_exit
85+
#endif

0 commit comments

Comments
 (0)