We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6b4fde + f702b90 commit f2e6c01Copy full SHA for f2e6c01
mk/rt.mk
@@ -53,6 +53,15 @@ define DEF_RUNTIME_TARGETS
53
RUNTIME_CFLAGS_$(1)_$(2) = -D_RUST_STAGE$(2)
54
RUNTIME_CXXFLAGS_$(1)_$(2) = -D_RUST_STAGE$(2)
55
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
64
+
65
RUNTIME_CXXS_$(1)_$(2) := \
66
rt/sync/timer.cpp \
67
rt/sync/lock_and_signal.cpp \
0 commit comments