Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎 GDC 不支持-version=<ident>开关,就像 DMD 一样。
-version=<ident>
--version或者-v也不工作。
--version
-v
如何指示编译器使用给定的版本标识符?
您需要使用-fversion查看gdc wiki
-fversion
该gdc程序不以与此相同的方式接受参数dmd。如果您想将类似 DMD 的参数与gdc, use一起使用gdmd,这是一个帮助脚本,它包装gdc并公开了一个dmd-like 命令行界面。例如,gdmd将翻译-version为-fversion.
gdc
dmd
gdmd
-version