Skip to content

Commit bea96d8

Browse files
author
Eric Holk
committed
---
yaml --- r: 4666 b: refs/heads/master c: a332043 h: refs/heads/master v: v3
1 parent 87bc2de commit bea96d8

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b2dad8af31d5d77e9e7da8561d87249fff216e80
2+
refs/heads/master: a3320435610364457bf4ae08d1de64c3a96fca68

trunk/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

trunk/src/rt/arch/i386/_context.s renamed to trunk/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)