Skip to content

Commit f2e6c01

Browse files
committed
auto merge of #6984 : brson/rust/rtcross, r=brson
2 parents d6b4fde + f702b90 commit f2e6c01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mk/rt.mk

+9
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ define DEF_RUNTIME_TARGETS
5353
RUNTIME_CFLAGS_$(1)_$(2) = -D_RUST_STAGE$(2)
5454
RUNTIME_CXXFLAGS_$(1)_$(2) = -D_RUST_STAGE$(2)
5555

56+
# XXX: Like with --cfg stage0, pass the defines for stage1 to the stage0
57+
# build of non-build-triple host compilers
58+
ifeq ($(2),0)
59+
ifneq ($(strip $(CFG_BUILD_TRIPLE)),$(strip $(1)))
60+
RUNTIME_CFLAGS_$(1)_$(2) = -D_RUST_STAGE1
61+
RUNTIME_CXXFLAGS_$(1)_$(2) = -D_RUST_STAGE1
62+
endif
63+
endif
64+
5665
RUNTIME_CXXS_$(1)_$(2) := \
5766
rt/sync/timer.cpp \
5867
rt/sync/lock_and_signal.cpp \

0 commit comments

Comments
 (0)