repls for d
Rémy Mouëza
remy.moueza at g.m.a.il.com
Fri Nov 1 22:48:25 UTC 2024
On Friday, 1 November 2024 at 01:52:54 UTC, monkyyy wrote:
> On Friday, 1 November 2024 at 01:03:44 UTC, Lance Bachmeier
> wrote:
>>
>> This is the drepl project:
>> https://github.com/dlang-community/drepl
>
> I dont think its been compiling for a while, and I didnt care
> much when it was
I had some issues with the linenoise dependency
`preBuildCommands` script, around a year ago.
The fix was to use the `$LINENOISE_PACKAGE_DIR` variable instead
of `$PACKAGE_DIR` to build drepl.
from:
```
"cd $PACKAGE_DIR; [ -f C/linenoise.o ] || cc -c -fPIC -o
C/linenoise.o C/linenoise.c" platform="posix"
```
to:
```
"cd $LINENOISE_PACKAGE_DIR; [ -f C/linenoise.o ] || cc -c -fPIC
-o C/linenoise.o C/linenoise.c" platform="posix"
```
I changed it directly in the
`~/.dub/packages/linenoise/1.1.0+1.0.0/linenoise/dub.json`.
The parsing being done by an older libdparse library, short
function forms like `int addOne(int i) => i + 1;` or named
function argument are not available.
More information about the Digitalmars-d
mailing list