Is it legal to embed dmd and Phobos into the program?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri Oct 30 21:02:43 UTC 2020


On Friday, 30 October 2020 at 20:53:16 UTC, Max Haughton wrote:
> On Friday, 30 October 2020 at 20:18:43 UTC, Ali Çehreli wrote:
>> (Yes, I am aware of "DMD as a library".)
>>
>> Still, would it be legal to embed a dmd build environment into 
>> a binary to unzip it at run time to compile code as needed? To 
>> compile a shared library to dynamically load, from source code 
>> that is also embedded?L Poor person's JIT compilation? :)
>>
>> I am currently implementing it without the dmd part. Curious 
>> about whether dmd part would be legal or not.
>>
>> Ali
>>
>> P.S. What about the 'unzip' program? May I embed that as well? 
>> The whole OS? Ok, I started having too much fun... :)
>
> It's all boost licensed, right? Should be fine because of that 
> (best leave a copyright notice just to be sure)

Boost requires the whole license to be available unless you only 
distribute a pure machine executable.



More information about the Digitalmars-d mailing list