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

Fix Erlang compiler & convert it to typescript #4124

Merged
merged 2 commits into from
Oct 10, 2022
Merged

Fix Erlang compiler & convert it to typescript #4124

merged 2 commits into from
Oct 10, 2022

Conversation

RubenRBS
Copy link
Member

@RubenRBS RubenRBS commented Oct 7, 2022

Recent refactors to base-lang broke it

Closes #4121

@RubenRBS RubenRBS changed the title Fix Erlang compiler Fix Erlang compiler & convert it to typescript Oct 7, 2022
Copy link
Member

@mattgodbolt mattgodbolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@@ -1,7 +1,7 @@
# Default settings for Erlang
compilers=&erlang
compilerType=erlang
versionFlag=
versionFlag=-noshell -eval io:fwrite("~s~n", [erlang:system_info(otp_release)]), halt().
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh blimey! You had to learn erlang for this!? :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hahaha no! I copied the flags over from the original compiler class

@partouf partouf merged commit b543993 into main Oct 10, 2022
@partouf partouf deleted the rr/fix-erlang branch October 10, 2022 11:04
@partouf
Copy link
Contributor

partouf commented Oct 10, 2022

this doesn't work, but i'll see if I can fix it in main

@partouf
Copy link
Contributor

partouf commented Oct 10, 2022

Fixed in 9f8d2cd

Though sidenote; I'm a bit confused now why this noshell eval code is in the optionsForFilter function, it seems not needed.
You can just do /opt/compiler-explorer/erlang-24.1.6/bin/erlc -S example.erl and get exactly the same...

But this was added from the beginning in #3094 .. so I don't know what the deal is

@RubenRBS
Copy link
Member Author

Thank you so much Partouf. I did indeed not test it as I have no Erlang setup locally. Should have tested in staging, sorry!

@partouf
Copy link
Contributor

partouf commented Oct 12, 2022

this is live

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

Successfully merging this pull request may close these issues.

[BUG]: Compilation of default erlang example fails
3 participants