Skip to content

Commit d14f730

Browse files
the-horoibuclaw
authored andcommitted
Support -mv
Signed-off-by: Andrei Horodniceanu <[email protected]>
1 parent bc6da3e commit d14f730

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dmd-script

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Usage:
152152
-man open web browser on manual page
153153
-map generate linker .map file
154154
-mixin=filename expand and save mixins to file specified by filename
155+
-mv=package.module=<filespac> Use <filespec> as source file for package.module
155156
-noboundscheck turns off array bounds checking for all functions
156157
-O optimize
157158
-o- do not write object file
@@ -591,6 +592,8 @@ while ( $arg_i < scalar(@ARGV) ) {
591592
}
592593
} elsif ( $arg =~ m/^-mixin=(.*)$/ ) {
593594
push @out, "-fsave-mixins=$1";
595+
} elsif ( $arg =~ m/^-mv=(.*)$/ ) {
596+
push @out, "-fmodule-file=$1";
594597
} elsif ( $arg =~ m/^-m.+/ ) {
595598
# Pass -mxxx options
596599
push @out, $arg;

dmd-script.1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ open web browser on manual page
107107
generate linker .map file
108108
.IP -mixin=filename
109109
expand and save mixins to file specified by filename
110+
.IP -mv=package.module=<filespec>
111+
Use <filespec> as source file for package.module. Check -fmodule-file in gdc(1) for more details
110112
.IP -noboundscheck
111113
turns off array bounds checking for all functions
112114
.IP -O

0 commit comments

Comments
 (0)