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

ci: fix self compilation with cached modules on macos (#7127)

This commit is contained in:
spaceface777 2020-12-04 12:25:02 +01:00 committed by GitHub
parent 52ccdd747f
commit 9345d489f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ fn (mut v Builder) post_process_c_compiler_output(res os.Result) {
fn (mut v Builder) rebuild_cached_module(vexe string, imp_path string) string {
// TODO: move this check somewhere else, this is really not the best place for it :/
// strconv is already imported inside builtin, so skip generating its object file
if imp_path == 'vlib/strconv' {
if imp_path in ['vlib/strconv', 'vlib/strings'] {
return ''
}
res := v.pref.cache_manager.exists('.o', imp_path) or {