Skip to content
Permalink
Browse files
add tuple_calls compiler flag for erlang 21
From http://www.erlang.org/news/123 :
* "Tuple calls" have been removed from the run-time system.

http://erlang.org/download/otp_src_21.0.readme
* OTP-14497 

               For legacy code that need to use parameterized modules
               or tuple calls for some other reason, there is a new
               compiler option called tuple_calls. When this option is
               given, the compiler will generate extra code that
               emulates the old behavior for calls where the module is
               a variable.
  • Loading branch information
gdamjan committed Jun 25, 2018
1 parent d3d3d7b commit 9c6c3f0f98b767bde06895c9b3c7d8205ae3673b
Showing 1 changed file with 1 addition and 0 deletions.
@@ -1,5 +1,6 @@
% -*- mode: erlang -*-
{erl_opts, [debug_info,
tuple_calls,
{platform_define, "^R15", 'gen_tcp_r15b_workaround'},
{platform_define, "^(R14|R15|R16B-)", 'crypto_compatibility'},
{platform_define, "^(R14|R15|R16B|17)", 'rand_mod_unavailable'},

0 comments on commit 9c6c3f0

Please sign in to comment.