Package: gdmd
Version: 2.100+git240529-1
Severity: normal
X-Debbugs-Cc: [email protected]
According to the man page -f... options should be passed to gdc.
But:
$ head -1 foo.d
#!/usr/bin/env -S gdmd -run -fmain -fpreview=all -unittest
$ strace -f ./foo.d 2>&1 | grep execve
...
...
execve("/usr/bin/gdc", [""/usr/bin/gdc", "-c", "-main", "-o", "-main.o"]
I had similar issue with not quite documented -main (it works different
than the generic -m... flag passing), which are mentioned in the source
code of gdmd tho.
Digging deeper, and experimenting, it looks like -run must be the last
parameter passed? (Not mentioned in the man page).
-- System Information:
Debian Release: trixie/sid
APT prefers trixie
APT policy: (500, 'trixie'), (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.14.0-rc4 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gdmd depends on:
ii gdc 4:14.2.0-1
ii gdc-14 [gdc] 14.2.0-17
gdmd recommends no packages.
gdmd suggests no packages.
-- no debconf information