www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - DMD to LDC2 option converter for Coedit

reply Basile B. <b2.temp gmx.com> writes:
I've been quite surprised to see that most of the options are 
compatible, however
I'm looking for someone who masters well LDC options to 
contribute to a tool for Coedit that converts DMD options to LDC2 
options, either directly in a D project or here as a list.

The project:

https://github.com/BBasile/Coedit/tree/master/cegdcldc

Currently there's only the skeleton but it already works if a CE 
project specifes only a set of D source. If someone is interested 
, the things to do is `void convertToLdc2()`.

If by any chance you know well GDC too...
Dec 10 2015
parent reply kink <noone nowhere.com> writes:
On Friday, 11 December 2015 at 06:20:10 UTC, Basile B. wrote:
 I've been quite surprised to see that most of the options are 
 compatible, however
 I'm looking for someone who masters well LDC options to 
 contribute to a tool for Coedit that converts DMD options to 
 LDC2 options, either directly in a D project or here as a list.
The ldmd2 driver (part of LDC) is meant as inline-replacement of the dmd binary with LDC, translating DMD options to LDC ones. If some options are missing, that should be the tool to be adapted. External tools relying on DMD options should use ldmd2 instead of ldc2, although some interesting LDC functionality is missing that way (`-output-ll`, `-mtriple` and the like).
Dec 11 2015
parent Basile B. <b2.temp gmx.com> writes:
On Friday, 11 December 2015 at 09:16:47 UTC, kink wrote:
 On Friday, 11 December 2015 at 06:20:10 UTC, Basile B. wrote:
 I've been quite surprised to see that most of the options are 
 compatible, however
 I'm looking for someone who masters well LDC options to 
 contribute to a tool for Coedit that converts DMD options to 
 LDC2 options, either directly in a D project or here as a list.
The ldmd2 driver (part of LDC) is meant as inline-replacement of the dmd binary with LDC, translating DMD options to LDC ones. If some options are missing, that should be the tool to be adapted. External tools relying on DMD options should use ldmd2 instead of ldc2, although some interesting LDC functionality is missing that way (`-output-ll`, `-mtriple` and the like).
I didn't know, thanks for the information, ldmd2 is just perfect for the task. If anyone reads this topic, just skip. Problem solved. :)
Dec 11 2015