You are not logged in.

#1 2022-01-16 23:42:38

silverhikari
Member
Registered: 2018-09-09
Posts: 15

advice on packaging output when using bazel

for context i am the current maintainer for mozc-ut-united, and have to change much of the pkgbuild to transition it from using python-gyp to bazel. i have gotten it to build successfully but i am now confused on how to package it as the build process of bazel buts it in the .cache folder of the user. any idea of how to tell it to put the output in the src folder, as i have tried a few variables from --destdir to --output_user_root but those do not seem to work

Offline

#2 2022-01-17 01:29:39

yochananmarqos
Member
Registered: 2020-02-05
Posts: 197

Re: advice on packaging output when using bazel

Use a local build cache:

bazel --output_user_root="$srcdir/bazel-cache" build

Offline

#3 2022-01-17 20:37:04

silverhikari
Member
Registered: 2018-09-09
Posts: 15

Re: advice on packaging output when using bazel

okay i see where i went wrong, i had put the option after build instead of before it. thanks will try that

Offline

#4 2022-01-17 20:54:02

silverhikari
Member
Registered: 2018-09-09
Posts: 15

Re: advice on packaging output when using bazel

yep that did it, thanks!

Offline

Board footer

Powered by FluxBB