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'
|
||||
$if macos {
|
||||
v.pref.out_name += '.dylib'
|
||||
} $else $if windows {
|
||||
v.pref.out_name += '.dll'
|
||||
} $else {
|
||||
v.pref.out_name += '.so'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue