Pavel Kirienko
Pavel Kirienko

Reputation: 1292

Version identifier switch for GNU D Compiler (GDC)

Seems that GDC does not support -version=<ident> switch, like DMD does.

--version or -v do not work either.

How do I instruct compiler to use given version identifier?

Upvotes: 0

Views: 171

Answers (2)

Vladimir Panteleev
Vladimir Panteleev

Reputation: 25187

The gdc program does not accept parameters in the same way that dmd does. If you'd like to use DMD-like parameters with gdc, use gdmd, a helper script which wraps gdc and exposes a dmd-like command-line interface. For example, gdmd will translate -version to -fversion.

Upvotes: 2

ratchet freak
ratchet freak

Reputation: 48216

you need to use -fversion see the gdc wiki

Upvotes: 2

Related Questions