make: Include rabbitmq_cli ebin in code path only if in deps

This commit is contained in:
Loïc Hoguin 2024-09-16 10:28:48 +02:00
parent 97363dfeae
commit f95c87082a
No known key found for this signature in database
GPG Key ID: C69E26E3A9DF618F
1 changed files with 2 additions and 1 deletions

View File

@ -8,9 +8,10 @@
TEST_ERLC_OPTS += +nowarn_export_all
ifneq ($(filter-out rabbit_common amqp_client,$(PROJECT)),)
ifneq ($(filter rabbitmq_cli,$(BUILD_DEPS) $(DEPS)),)
# Add the CLI ebin directory to the code path for the compiler: plugin
# CLI extensions may access behaviour modules defined in this directory.
RMQ_ERLC_OPTS += -pa $(DEPS_DIR)/rabbitmq_cli/_build/dev/lib/rabbitmqctl/ebin
endif