Skip to content

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

Open
the-horo wants to merge 1 commit into
gnunn1:masterfrom
the-horo:master
Open

meson.build: add -allinst when compiling with dmd or gdc, #2210#2219
the-horo wants to merge 1 commit into
gnunn1:masterfrom
the-horo:master

Conversation

@the-horo
Copy link
Copy Markdown
Contributor

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

Comment thread meson.build Outdated
@@ -9,8 +9,13 @@ compiler = meson.get_compiler('d')
if compiler.get_id() == 'llvm'
d_extra_args = ['-vcolumns']
Copy link
Copy Markdown
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
Copy Markdown
Contributor 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 <a.horodniceanu@proton.me>
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