Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dlang
gtkd
Commits
9bf1c664
Commit
9bf1c664
authored
May 31, 2019
by
Mike Wey
Browse files
Add mscoff support to the Windows build script.
parent
855bc29d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Build.d
View file @
9bf1c664
...
...
@@ -21,17 +21,34 @@ version(DigitalMars)
string
DC
=
"dmd"
;
string
OUTPUT
=
"-of"
;
version
(
Win32
)
version
=
DMD32
;
version
(
CRuntime_DigitalMars
)
string
PLATFORM
=
"-m32"
;
else
version
(
X86
)
string
PLATFORM
=
"-m32mscoff"
;
else
version
(
X86_64
)
string
PLATFORM
=
"-m64"
;
version
(
CRuntime_DigitalMars
)
version
=
DMD32
;
}
else
version
(
LDC
)
{
string
DC
=
"ldc2"
;
string
OUTPUT
=
"-od=objects -oq -of"
;
version
(
X86
)
string
PLATFORM
=
"-m32"
;
else
version
(
X86_64
)
string
PLATFORM
=
"-m64"
;
}
else
version
(
GNU
)
{
string
DC
=
"gdc"
;
string
OUTPUT
=
"-o "
;
version
(
X86
)
string
PLATFORM
=
"-m32"
;
else
version
(
X86_64
)
string
PLATFORM
=
"-m64"
;
}
else
{
...
...
@@ -125,7 +142,7 @@ void build(string dir, string lib)
}
else
{
std
.
file
.
write
(
"build.rf"
,
format
(
"
-m64
-c -lib %s %s -Igenerated/gtkd %s%s.lib %s"
,
dcflags
,
ldflags
,
OUTPUT
,
lib
,
dFiles
(
dir
)));
std
.
file
.
write
(
"build.rf"
,
format
(
"
%s
-c -lib %s %s -Igenerated/gtkd %s%s.lib %s"
,
PLATFORM
,
dcflags
,
ldflags
,
OUTPUT
,
lib
,
dFiles
(
dir
)));
auto
pid
=
spawnProcess
([
DC
,
"@build.rf"
]);
if
(
wait
(
pid
)
!=
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment