Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for major version compatability #88

Closed
ericmj opened this issue Sep 16, 2016 · 4 comments
Closed

Add option for major version compatability #88

ericmj opened this issue Sep 16, 2016 · 4 comments

Comments

@ericmj
Copy link

ericmj commented Sep 16, 2016

I have an issue where I generate .erl files on OTP19 and then use them on OTP17. This causes issues with the dialyzer nowarn attributes that are generated.

A work around for me could be to instead always generate on the lowest OTP version I want to support but it would be nicer if it could be an option instead.

@tomas-abrahamsson
Copy link
Owner

Yes, I should think that ought to be doable to add an option for which major OTP version to target. I will look into it.

@tomas-abrahamsson
Copy link
Owner

In the just-pushed 3.26.0 release, there's a {target_erlang_version,N} option, to support your use case. (Closing)

@ericmj
Copy link
Author

ericmj commented Sep 22, 2016

Thank you!

@tomas-abrahamsson
Copy link
Owner

You're welcome! It turned out to be useful also because I could unit-test some code paths that were otherwise difficult to reach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants