Bug 18193 – module config is in file 'rt/config.d' which cannot be read
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-01-05T08:51:55Z
Last change time
2018-01-16T05:37:07Z
Assigned to
No Owner
Creator
Eugene Wissner
Comments
Comment #0 by belka — 2018-01-05T08:51:55Z
src/rt isn't shipped with druntime's imports, so it can't be
imported directly from core.runtime.
Create a file that imports 'core.runtime' and
compile it with:
dmd -deps filename.d
The error is:
/usr/include/dmd/druntime/import/core/runtime.d(653): Error: module
config is in file 'rt/config.d' which cannot be read
dmd 2.078.0
Comment #2 by github-bugzilla — 2018-01-12T17:35:40Z
Commits pushed to stable at https://github.com/dlang/druntimehttps://github.com/dlang/druntime/commit/10afa6944bb3ac479cbcabc5499a86136907b95f
Fix issue 18193 - module config is in file 'rt/config.d' which cannot be read (edit)
src/rt isn't shipped with druntime's imports, so it can't be
imported directly from core.runtime. This PR fixes importing rt.config
from a public druntime module by replacing it with an extern
definition.
To reproduce the bug create a file that imports 'core.runtime' and
compile it with:
dmd -unittest -deps filename.d
The error is:
/usr/include/dmd/druntime/import/core/runtime.d(653): Error: module
config is in file 'rt/config.d' which cannot be read
https://github.com/dlang/druntime/commit/105d4a5ca279316665b3b796bf5ca7d249595caf
Add test to the bug 18193
Comment #3 by github-bugzilla — 2018-01-16T05:37:07Z