mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builder: add -c when building object files
This commit is contained in:
parent
d215618f4c
commit
bc60b0d1a3
@ -299,6 +299,9 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
|
||||
if v.pref.sanitize {
|
||||
ccoptions.args << '-fsanitize=leak'
|
||||
}
|
||||
if v.pref.is_o {
|
||||
ccoptions.args << '-c'
|
||||
}
|
||||
//
|
||||
ccoptions.shared_postfix = '.so'
|
||||
$if macos {
|
||||
|
Loading…
Reference in New Issue
Block a user