-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: use "tailscale_go" build tag when using Tailscale's Go tool…
…chain Updates tailscale/tailscale#13527
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z "$TOOLCHAIN_DIR" ]]; then | ||
# By default, if TOOLCHAIN_DIR is unset, we assume we're | ||
# using the Tailscale Go toolchain (github.com/tailscale/go) | ||
# at the revision specified by go.toolchain.rev. If so, | ||
# we tell our caller to use the "tailscale_go" build tag. | ||
echo "tailscale_go" | ||
else | ||
# Otherwise, if TOOLCHAIN_DIR is specified, we assume | ||
# we're F-Droid or something using a stock Go toolchain. | ||
# That's fine. But we don't set the tailscale_go build tag. | ||
# Return some no-op build tag that's non-empty for clarity | ||
# when debugging. | ||
echo "not_tailscale_go" | ||
fi |