Skip to content

Commit 3c8c56f

Browse files
lukebakkenmergify[bot]
authored andcommitted
Allow non-deterministic builds
Building from source using this command: ``` make RMQ_ERLC_OPTS= FULL=1 ``` ... then starting RabbitMQ via `make run-broker`, allows re-compilation from the erl shell: ``` 1> c(rabbit). Recompiling /home/lbakken/development/rabbitmq/rabbitmq-server/deps/rabbit/src/rabbit.erl {ok,rabbit} ``` When `+deterministic` is passed to `erlc`, the `compile` data in each modules' information is missing the source path for the module. Follow-up to #3442 (cherry picked from commit eae657f)
1 parent a3aa838 commit 3c8c56f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit_common/mk/rabbitmq-build.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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+
RMQ_ERLC_OPTS ?= +deterministic
1919

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

0 commit comments

Comments
 (0)