Bug 22952 – Compiler fails to find package.d modules via -mv map
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-28T18:43:20Z
Last change time
2022-10-04T02:16:20Z
Assigned to
No Owner
Creator
Max Samukha
Comments
Comment #0 by maxsamukha — 2022-03-28T18:43:20Z
To reproduce, create this source tree:
libsrc\
package.d
main.d
The contents of libsrc\package.d:
module lib;
The contents of main.d:
module main;
import lib;
void main() {}
Map 'lib' package to 'libsrc' folder and compile:
dmd -i -mv=lib=libsrc main.d
main.d(3): Error: module `lib` is in file 'lib.d' which cannot be read
Comment #1 by razvan.nitu1305 — 2022-10-04T02:16:20Z