builder: fix dll generation on Windows (#6939)

pull/6946/head
Ekopalypse 2020-11-25 12:18:58 +01:00 committed by GitHub
parent 7d6f97259f
commit a46eda7c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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'
} }