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
This commit is contained in:
Luke Bakken 2025-05-16 12:45:17 -07:00
parent 98d1634ce3
commit eae657fc38
No known key found for this signature in database
GPG Key ID: D99DE30E43EAE440
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ ifneq ($(filter rabbitmq_cli,$(BUILD_DEPS) $(DEPS)),)
RMQ_ERLC_OPTS += -pa $(DEPS_DIR)/rabbitmq_cli/ebin RMQ_ERLC_OPTS += -pa $(DEPS_DIR)/rabbitmq_cli/ebin
endif endif
RMQ_ERLC_OPTS += +deterministic RMQ_ERLC_OPTS ?= +deterministic
# Push our compilation options to both the normal and test ERLC_OPTS. # Push our compilation options to both the normal and test ERLC_OPTS.
ERLC_OPTS += $(RMQ_ERLC_OPTS) ERLC_OPTS += $(RMQ_ERLC_OPTS)