repls for d
jmh530
john.michael.hall at gmail.com
Fri Nov 1 23:48:10 UTC 2024
On Friday, 1 November 2024 at 22:48:25 UTC, Rémy Mouëza wrote:
> On Friday, 1 November 2024 at 01:52:54 UTC, monkyyy wrote:
>> [...]
>
> 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.
Would you be able to submit the fix?
More information about the Digitalmars-d
mailing list