Call an external program from CTFE

anyaburke anyaburke63 at gmail.com
Wed Jun 26 03:32:07 UTC 2024


On Monday, 24 June 2024 at 09:52:48 UTC, realhet wrote:
> On Sunday, 23 June 2024 at 16:46:05 UTC, monkyyy wrote:
>> [...]
>
> Good idea, thx!
>
> The two directions of this communication path could be:
>
> 1. LDC2 -> External process:
> pragma(msg, x)  produces specially formatted message to the 
> stdErr, my buildsystem will watch it and will remember 'x'.
>
> 2. External process -> LDC2
> -J, mixin file, using ProjFS on windows.
>
> The ProjFS can block and wait for the external program to 
> complete.
>
> https://dlang.org/spec/expression 
> [url=https://ageofwargame.io]age of war[/url]
> This is perfectly fits for this.  The filename will be: 
> glsl_hash.  If there was a pragma(msg) with that hash, the 
> Projected File System will provide it.

"pragma(msg, x)" is a D language pragma that produces a specially 
formatted message to the standard error stream (stdErr). This 
message will be watched by the user's build system.



More information about the Digitalmars-d-learn mailing list