rabbitmq-server/bazel/amqp.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
435 B
Diff
Raw Normal View History

2023-07-04 00:04:34 +08:00
diff --git a/lib/amqp/core.ex b/lib/amqp/core.ex
index a7302aa..abf2be6 100644
--- a/lib/amqp/core.ex
+++ b/lib/amqp/core.ex
@@ -3,6 +3,10 @@ defmodule AMQP.Core do
require Record
+ # Elixir 1.15 compiler optimizations require that we explicitly
+ # add the rabbit_common code path
+ true = :code.add_path(:filename.join(:os.getenv(~c"DEPS_DIR"), ~c"rabbit_common/ebin"))
+
Record.defrecord(
:p_basic,
:P_basic,