1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v.builder: fix v -cc tcc -no-retry-compilation build-module vlib/sync/stdatomic

This commit is contained in:
Delyan Angelov
2021-12-29 21:32:30 +02:00
parent ca5154747e
commit 99fdcd2e71
2 changed files with 20 additions and 6 deletions

View File

@@ -390,7 +390,11 @@ fn (v &Builder) all_args(ccoptions CcompilerOptions) []string {
all << ccoptions.pre_args
all << ccoptions.source_args
all << ccoptions.post_args
all << ccoptions.linker_flags
// in `build-mode`, we do not need -lxyz flags, since we are
// building an (.o) object file, that will be linked later.
if v.pref.build_mode != .build_module {
all << ccoptions.linker_flags
}
all << ccoptions.env_ldflags
return all
}