Skip to content

Commit 75d8beb

Browse files
Merge pull request #14615 from rabbitmq/mergify/bp/v4.2.x/pr-14577
Add `NON_DETERMINISTIC` make variable (backport #14577)
2 parents b72b529 + b22461c commit 75d8beb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

deps/rabbit/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ RMQ_ERLC_OPTS += -DTRACE_SUPERVISOR2=true
367367
endif
368368

369369
# https://www.erlang.org/doc/apps/parsetools/leex.html#file/2
370-
YRL_ERLC_OPTS ?= +deterministic
370+
ifndef NON_DETERMINISTIC
371+
YRL_ERLC_OPTS += +deterministic
372+
endif
371373

372374
# --------------------------------------------------------------------
373375
# Documentation.

deps/rabbit_common/mk/rabbitmq-build.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ ifneq ($(filter rabbitmq_cli,$(BUILD_DEPS) $(DEPS)),)
1515
RMQ_ERLC_OPTS += -pa $(DEPS_DIR)/rabbitmq_cli/ebin
1616
endif
1717

18-
RMQ_ERLC_OPTS ?= +deterministic
18+
ifndef NON_DETERMINISTIC
19+
RMQ_ERLC_OPTS += +deterministic
20+
endif
1921

2022
# Push our compilation options to both the normal and test ERLC_OPTS.
2123
ERLC_OPTS += $(RMQ_ERLC_OPTS)

0 commit comments

Comments
 (0)