Skip to content

Commit c72d42b

Browse files
authored
Merge pull request #7 from Kozzi11/add_shared
Add -shared option
2 parents 726df05 + 441b074 commit c72d42b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dmd-script

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Usage:
153153
-q,arg1,... pass arg1, arg2, etc. to to gdc
154154
-release compile release version
155155
-run srcfile args... run resulting program, passing args
156+
-shared generate shared library (DLL)
156157
-unittest compile in unit tests
157158
-v verbose
158159
-vdmd print commands run by this script
@@ -419,6 +420,8 @@ while ( $arg_i < scalar(@ARGV) ) {
419420

420421
push @run_args, @ARGV[$arg_i..$#ARGV];
421422
last;
423+
} elsif ( $arg =~ m/^-shared$/ ) {
424+
push @out, '-shared';
422425
} elsif ( $arg =~ m/^-noboundscheck$/ ) {
423426
push @out, '-fno-bounds-check';
424427
} elsif ( $arg =~ m/^-unittest$/ ) {

dmd-script.1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ Pass the comma-separated arguments to gdc
107107
compile release version
108108
.IP -run
109109
run resulting program, passing args
110+
.IP -shared
111+
generate shared library (DLL)
110112
.IP -unittest
111113
compile in unit tests
112114
.IP -v
@@ -141,4 +143,3 @@ Copyright
141143
Maintained by:
142144

143145
(C) 2011 Iain Buclaw
144-

0 commit comments

Comments
 (0)