mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci,cgen: fix -usecache compilation of V itself
This commit is contained in:
parent
73b02cdf36
commit
71cd256f0c
@ -411,14 +411,14 @@ pub fn gen(files []&ast.File, table &ast.Table, pref &pref.Preferences) string {
|
|||||||
// to make sure type idx's are the same in cached mods
|
// to make sure type idx's are the same in cached mods
|
||||||
if g.pref.build_mode == .build_module {
|
if g.pref.build_mode == .build_module {
|
||||||
for idx, sym in g.table.type_symbols {
|
for idx, sym in g.table.type_symbols {
|
||||||
if idx == 0 {
|
if idx in [0, 30] {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
g.definitions.writeln('int _v_type_idx_${sym.cname}();')
|
g.definitions.writeln('int _v_type_idx_${sym.cname}();')
|
||||||
}
|
}
|
||||||
} else if g.pref.use_cache {
|
} else if g.pref.use_cache {
|
||||||
for idx, sym in g.table.type_symbols {
|
for idx, sym in g.table.type_symbols {
|
||||||
if idx == 0 {
|
if idx in [0, 30] {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
g.definitions.writeln('int _v_type_idx_${sym.cname}() { return $idx; };')
|
g.definitions.writeln('int _v_type_idx_${sym.cname}() { return $idx; };')
|
||||||
|
Loading…
Reference in New Issue
Block a user