mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cbuilder: remove forgotten dump(), simplify o_postfixes
This commit is contained in:
parent
90599c7f85
commit
17b07273aa
@ -52,10 +52,7 @@ fn parallel_cc(mut b builder.Builder, header string, res string, out_str string,
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
sw := time.new_stopwatch()
|
sw := time.new_stopwatch()
|
||||||
mut o_postfixes := []string{}
|
mut o_postfixes := ['0', 'x']
|
||||||
for i in ['0', 'x'] {
|
|
||||||
o_postfixes << i
|
|
||||||
}
|
|
||||||
for i in 0 .. c_files {
|
for i in 0 .. c_files {
|
||||||
o_postfixes << (i + 1).str()
|
o_postfixes << (i + 1).str()
|
||||||
}
|
}
|
||||||
@ -64,7 +61,6 @@ fn parallel_cc(mut b builder.Builder, header string, res string, out_str string,
|
|||||||
pp.set_max_jobs(nthreads)
|
pp.set_max_jobs(nthreads)
|
||||||
pp.work_on_items(o_postfixes)
|
pp.work_on_items(o_postfixes)
|
||||||
eprintln('> C compilation on $nthreads threads, working on $o_postfixes.len files took: $sw.elapsed().milliseconds() ms')
|
eprintln('> C compilation on $nthreads threads, working on $o_postfixes.len files took: $sw.elapsed().milliseconds() ms')
|
||||||
dump(b.pref.out_name)
|
|
||||||
link_cmd := '${os.quoted_path(cbuilder.cc_compiler)} -o ${os.quoted_path(b.pref.out_name)} out_0.o ${fnames.map(it.replace('.c',
|
link_cmd := '${os.quoted_path(cbuilder.cc_compiler)} -o ${os.quoted_path(b.pref.out_name)} out_0.o ${fnames.map(it.replace('.c',
|
||||||
'.o')).join(' ')} out_x.o -lpthread $cbuilder.cc_ldflags'
|
'.o')).join(' ')} out_x.o -lpthread $cbuilder.cc_ldflags'
|
||||||
sw_link := time.new_stopwatch()
|
sw_link := time.new_stopwatch()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user