File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ Usage:
109
109
\@ cmdfile read arguments from cmdfile
110
110
-allinst generate code for all template instantiations
111
111
-arch ... pass an -arch ... option to gdc
112
+ -boundscheck=value bounds checks on, in \@ safe only, or off
112
113
-c do not link
113
114
-cov do code coverage analysis
114
115
-D generate documentation
@@ -335,6 +336,8 @@ while ( $arg_i < scalar(@ARGV) ) {
335
336
push @out , ' -arch' , $ARGV [$arg_i ++];
336
337
} elsif ( $arg =~ m / ^(-betterC|-vcolumns)$ / ) {
337
338
# ignored
339
+ } elsif ( $arg =~ m / ^-boundscheck=(.*)$ / ) {
340
+ push @out , " -fbounds-check=$1 "
338
341
} elsif ($arg =~ m / ^-c$ / ) {
339
342
$link = 0;
340
343
} elsif ( $arg eq ' -cov' ) {
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Library files to link in
19
19
generate code for all template instantiations
20
20
.IP " -arch ..."
21
21
pass -arch option to gdc
22
+ .IP -boundscheck=[on|safeonly|off]
23
+ bounds checks on, in @safe only, or off
22
24
.IP -c
23
25
compile only, do not link
24
26
.IP -cov
You can’t perform that action at this time.
0 commit comments