From 544085b5af4738ebcc8e39b52f92d94e52b663ac Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 26 Apr 2024 15:43:15 +0300 Subject: [PATCH] tools: fix building vpm on the FreeBSD instance, that runs fast.v --- cmd/tools/fast/fast.v | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 0faba1d929..c127f452ba 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -160,6 +160,11 @@ fn main() { // upload the result to github pages 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/')! elog('Uploading to fast.vlang.io/ ...') lexec('git checkout gh-pages') @@ -173,6 +178,8 @@ fn main() { os.chdir('${fast_dir}/docs.vlang.io/')! elog('Uploading to docs.vlang.io/ ...') + elog(' installing dependencies...') + lexec('${vdir}/vprod install') elog(' running build.vsh...') lexec('${vdir}/vprod run build.vsh') elog(' adding changes...')