tools: fix building vpm on the FreeBSD instance, that runs fast.v

This commit is contained in:
Delyan Angelov 2024-04-26 15:43:15 +03:00
parent cdec163154
commit 544085b5af
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -160,6 +160,11 @@ fn main() {
// upload the result to github pages // upload the result to github pages
if os.args.contains('-upload') { if os.args.contains('-upload') {
$if freebsd {
// Note: tcc currently can not compile vpm on FreeBSD, due to its dependence on net.ssl and net.mbedtls, so force using clang instead:
lexec('${vdir}/vprod -cc clang ${vdir}/cmd/tools/vpm/')
}
os.chdir('${fast_dir}/fast.vlang.io/')! os.chdir('${fast_dir}/fast.vlang.io/')!
elog('Uploading to fast.vlang.io/ ...') elog('Uploading to fast.vlang.io/ ...')
lexec('git checkout gh-pages') lexec('git checkout gh-pages')
@ -173,6 +178,8 @@ fn main() {
os.chdir('${fast_dir}/docs.vlang.io/')! os.chdir('${fast_dir}/docs.vlang.io/')!
elog('Uploading to docs.vlang.io/ ...') elog('Uploading to docs.vlang.io/ ...')
elog(' installing dependencies...')
lexec('${vdir}/vprod install')
elog(' running build.vsh...') elog(' running build.vsh...')
lexec('${vdir}/vprod run build.vsh') lexec('${vdir}/vprod run build.vsh')
elog(' adding changes...') elog(' adding changes...')