Github user iilyak commented on a diff in the pull request:
https://github.com/apache/couchdb/pull/348#discussion_r40696130
--- Diff: rebar.config.script ---
@@ -15,6 +15,18 @@
ConfigureEnv = filename:join(filename:dirname(SCRIPT), "config.erl"),
os:putenv("COUCHDB_CONFIG", ConfigureEnv).
+OTP_VSN = erlang:system_info(compat_rel),
+
+Features = lists:filter(fun({_K, Flag}) -> Flag end, [
+ {'HAS_CALLBACKS', OTP_VSN > 14}
+]),
+
+Properties = Features ++ [
+ {'OTP_VSN', OTP_VSN},
+ {'OTP_RELEASE', erlang:system_info(otp_release)}
+],
--- End diff --
The reason I didn't hardcoded defines as `[{d, Key, Value}]` is to be able
to define some macro from the content of `config.erl`. But I didn't do a second
step to actually use `config.erl`. I'll update the PR with @rnewson's solution.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---