annotating (object/library files) with compilation metadata to avoid incompatible libraries

2016-12-20 Thread Timothee Cour via Digitalmars-d
Could dmd/ldc/gdc produce user defined attributes embedded (eg as json string) embedded in some section of the object file/static/shared library, eg: ``` {"compiler" : "dmd", "version" : "2.072", "flags" : "-O -debug"} ``` with some way to write and read those attributes, so that tooling can give

Re: annotating (object/library files) with compilation metadata to avoid incompatible libraries

2016-12-31 Thread Iain Buclaw via Digitalmars-d
On 20 December 2016 at 13:04, Timothee Cour via Digitalmars-d wrote: > Could dmd/ldc/gdc produce user defined attributes embedded (eg as json > string) embedded in some section of the object file/static/shared library, > eg: > > ``` > {"compiler" : "dmd", "version" : "2.072", "flags" : "-O -debug"