[Issue 21294] [REG 2.095]: DMD fails to link since PR11743

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 6 09:42:01 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21294

--- Comment #9 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #8)
> The first bad commit for dmd was https://github.com/dlang/dmd/pull/11083
> 
> Adding the import of stringtable in that PR now means that all modules think
> it's OK to omit generating code for StringValue!(Type).
> 

Adding -allinst does not help either.

```
#!/bin/bash

# Toggle testing using -allinst
dflags="-allinst"

if [ -d build ]; then rm -r build; fi
mkdir build
echo "/etc" > build/SYSCONFDIR.imp
echo "v2.000.0" > build/VERSION
echo "" > build/default_ddoc_theme.ddoc

for dir in . root backend; do
    mkdir -p build/${dir}
    for src in src/dmd/${dir}/*.d; do
        echo dmd ${dflags} -version=MARS -I=src -J=src/dmd/res -J=build \
            -c -od=build/${dir} ${src}
        dmd ${dflags} -version=MARS -I=src -J=src/dmd/res -J=build \
            -c -od=build/${dir} ${src} &
        sleep 0.05
    done
done
wait
echo dmd build/backend/*.o build/root/*.o build/*.o -of=build/dmd
dmd build/backend/*.o build/root/*.o build/*.o -of=build/dmd

echo =========================
dmd --version
```

--


More information about the Digitalmars-d-bugs mailing list