February 09, 2023

On Thursday, 9 February 2023 at 06:07:35 UTC, Elfstone wrote:

>

Maybe Walter doesn't care about Windows enough, but I thought it'd be a must to add basic tests (say, "dmd hello.c") to run on all the platforms before release.

Unlikely, since his text editor doesn't even compile on Linux. I filed that two years ago. I assume that means Windows is his main development OS. The problems you're describing might be more of a reflection of shortage of Windows users that contribute.

February 09, 2023

On Wednesday, 8 February 2023 at 14:08:47 UTC, bachmeier wrote:

>

this looks like one of those "death by paper cut" things. It has the smell of a rough edge that needs fixing.

It's the one reason I haven't even tried ImportC. I still wonder why I need to provide those headers while for linking MSVC is kinda autodetected now.

June 21, 2024

On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote:

>

On Monday, 6 February 2023 at 06:55:02 UTC, Elfstone wrote:

>

So how am I supposed to set the include path?

https://dlang.org/spec/importc.html#preprocessor

>

The -Ppreprocessorflag switch passes preprocessorflag to the preprocessor.

So if you normally use -I/foo, you'd add -P-I/foo.

How to do this in the dub.json file? and work across DMD/LDC/GDC?

Thanks.

June 22, 2024

On Friday, 21 June 2024 at 17:40:39 UTC, mw wrote:

>

On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote:

>

On Monday, 6 February 2023 at 06:55:02 UTC, Elfstone wrote:

>

So how am I supposed to set the include path?

https://dlang.org/spec/importc.html#preprocessor

>

The -Ppreprocessorflag switch passes preprocessorflag to the preprocessor.

So if you normally use -I/foo, you'd add -P-I/foo.

How to do this in the dub.json file? and work across DMD/LDC/GDC?

Thanks.

I don't normally use Dub for this reason (it takes longer for me to figure out how to create the dub.json than it's worth). I'd expect "dflags" to work, but I haven't tried, and I'm not sure how much of ImportC even works with GDC.

June 22, 2024

On Saturday, 22 June 2024 at 10:47:42 UTC, bachmeier wrote:

>

I don't normally use Dub for this reason (it takes longer for me to figure out how to create the dub.json than it's worth). I'd expect "dflags" to work, but I haven't tried, and I'm not sure how much of ImportC even works with GDC.

It doesn't seem to be documented, but there is a cImportPaths argument, which presumably does what you want: https://github.com/dlang/dub/blob/a8da51eb8a5485956622282f2339ec5a39c8c761/source/dub/recipe/json.d#L233

1 2
Next ›   Last »