diff options
Diffstat (limited to '')
-rw-r--r-- | src/jaegertracing/thrift/lib/erl/rebar.config | 3 | ||||
-rw-r--r-- | src/jaegertracing/thrift/lib/erl/rebar.config.script | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/jaegertracing/thrift/lib/erl/rebar.config b/src/jaegertracing/thrift/lib/erl/rebar.config new file mode 100644 index 000000000..1b32947a5 --- /dev/null +++ b/src/jaegertracing/thrift/lib/erl/rebar.config @@ -0,0 +1,3 @@ +{erl_opts, [{platform_define, "^R.*", otp16_or_less}, debug_info]}. + +{profiles, [{test, [{deps, [meck]}]}]}. diff --git a/src/jaegertracing/thrift/lib/erl/rebar.config.script b/src/jaegertracing/thrift/lib/erl/rebar.config.script new file mode 100644 index 000000000..c73382326 --- /dev/null +++ b/src/jaegertracing/thrift/lib/erl/rebar.config.script @@ -0,0 +1,7 @@ +Def0 = case not erlang:is_builtin(erlang, monotonic_time, 0) of + true -> []; + false -> [{d, time_correction}] + end, +Defs = Def0, +lists:keystore(erl_opts, 1, CONFIG, + {erl_opts, proplists:get_value(erl_opts, CONFIG, []) ++ Defs}). |