builder: fix dll generation on Windows (#6939)
parent
7d6f97259f
commit
a46eda7c44
|
@ -288,6 +288,8 @@ fn (mut v Builder) cc() {
|
||||||
args << '-fPIC' // -Wl,-z,defs'
|
args << '-fPIC' // -Wl,-z,defs'
|
||||||
$if macos {
|
$if macos {
|
||||||
v.pref.out_name += '.dylib'
|
v.pref.out_name += '.dylib'
|
||||||
|
} $else $if windows {
|
||||||
|
v.pref.out_name += '.dll'
|
||||||
} $else {
|
} $else {
|
||||||
v.pref.out_name += '.so'
|
v.pref.out_name += '.so'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue