What are the barriers to adding C support to dub?
James Blachly
james.blachly at gmail.com
Sat Mar 20 18:35:39 UTC 2021
On 3/20/21 10:28 AM, Imperatorn wrote:
> On Saturday, 20 March 2021 at 14:19:25 UTC, Bastiaan Veelo wrote:
>> On Friday, 19 March 2021 at 23:11:51 UTC, Chris Piker wrote:
>>> I am curious to know what barriers prevent dub from supporting C
>>> source code compilation.
>>
>> The best option currently is probably to call any existing build tool
>> in dub’s preBuildCommands to compile files in foreign languages as
>> part of the dub build process.
>>
>> Do you see any issues using this approach?
>>
>> — Bastiaan.
>
> This is probably what I would do if I had to
Yes, this is what we do for our D library that needs some C source
linked in as .o file. I posted a followup to Chris' message in the learn
forum as well.
https://github.com/blachlylab/intervaltree/blob/master/dub.json
More information about the Digitalmars-d
mailing list