mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-07 08:44:38 +00:00
util/eventbus: remove debug UI from iOS build
The use of html/template causes reflect-based linker bloat. Longer term we have options to bring the UI back to iOS, but for now, cut it out. Updates #15297 Signed-off-by: David Anderson <dave@tailscale.com>
This commit is contained in:
parent
daa5635ba6
commit
e091e71937
@ -1,6 +1,8 @@
|
|||||||
// Copyright (c) Tailscale Inc & AUTHORS
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
|
//go:build !ios
|
||||||
|
|
||||||
package eventbus
|
package eventbus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
18
util/eventbus/debughttp_ios.go
Normal file
18
util/eventbus/debughttp_ios.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
|
//go:build ios
|
||||||
|
|
||||||
|
package eventbus
|
||||||
|
|
||||||
|
import "tailscale.com/tsweb"
|
||||||
|
|
||||||
|
func registerHTTPDebugger(d *Debugger, td *tsweb.DebugHandler) {
|
||||||
|
// The event bus debugging UI uses html/template, which uses
|
||||||
|
// reflection for method lookups. This forces the compiler to
|
||||||
|
// retain a lot more code and information to make dynamic method
|
||||||
|
// dispatch work, which is unacceptable bloat for the iOS build.
|
||||||
|
//
|
||||||
|
// TODO: https://github.com/tailscale/tailscale/issues/15297 to
|
||||||
|
// bring the debug UI back to iOS somehow.
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user