Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pre and post build hook?#27183

Unanswered
michaelfelixmurphy asked this question inQ&A
Discussion options

Does Bazel provide any sort of hooks to run programs/commands before and after the entire build?

The compiler I'm using requires two things that I cannot figure out how to do in Bazel.

Before the entire build starts, I need to start a license server. That server should run during the entirety of the build. It's ok if the server runs in a sandbox (or not). [Then the build runs as normal: multiple sandboxes run in parallel, the compiler in each talks to the license server.] After the entire build, I need to shut down the license server (to release all the licenses).

I cannot figure out how to have Bazel do the first and last step.

You must be logged in to vote

Replies: 1 comment

Comment options

fmeum
Oct 8, 2025
Collaborator

You can set up a custom wrapper script intools/bazel.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@michaelfelixmurphy@fmeum

[8]ページ先頭

©2009-2025 Movatter.jp