Skip to content

Commit

Permalink
meson.build: add -allinst when compiling with dmd or gdc, #2210
Browse files Browse the repository at this point in the history
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

Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Apr 29, 2024
1 parent 4a95e51 commit 6c7408c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ compiler = meson.get_compiler('d')
if compiler.get_id() == 'llvm'
d_extra_args = ['-vcolumns']
d_link_args = []
else
d_extra_args = []
elif compiler.get_id() == 'dmd'
# Workaround for https://issues.dlang.org/show_bug.cgi?id=20668
d_extra_args = ['-allinst']
d_link_args = []
elif compiler.get_id() == 'gcc'
# Workaround for https://issues.dlang.org/show_bug.cgi?id=20668
d_extra_args = ['-fall-instantiations']
d_link_args = []
endif

Expand Down

0 comments on commit 6c7408c

Please sign in to comment.