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

meson.build: add -allinst when compiling with dmd or gdc, #2210 #2219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

the-horo
Copy link

This is needed to work around a bug in dmd regarding template emissions.

Bug: #2210
Bug: https://issues.dlang.org/show_bug.cgi?id=20668

meson.build Outdated
@@ -9,8 +9,13 @@ compiler = meson.get_compiler('d')
if compiler.get_id() == 'llvm'
d_extra_args = ['-vcolumns']
Copy link
Contributor

Choose a reason for hiding this comment

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

The ldc compiler also needs -allinst to be set, or it would throw same error as others (as far as I could test with Arch Linux's ldc)

Suggested change
d_extra_args = ['-vcolumns']
d_extra_args = ['-vcolumns', '-allinst']

Copy link
Author

Choose a reason for hiding this comment

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

It makes sense why we would add -allinst to all compilers given it's a frontend bug. I didn't add it for ldc2 since it was the only compiler that was working.

For the record, I tested with ldc2-1.39 and that one worked without the need of -allinst.

This is needed to work around a bug in dmd regarding template
emissions.

Bug: gnunn1#2210
Bug: https://issues.dlang.org/show_bug.cgi?id=20668

Signed-off-by: Andrei Horodniceanu <[email protected]>
algitbot pushed a commit to alpinelinux/aports that referenced this pull request Nov 23, 2024
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.

2 participants