mirror of
https://github.com/Tencent/flare.git
synced 2026-10-17 04:41:22 +08:00
3a5c410c18
Rewrite the two Python-only constructs in the cc_flare_library extension so it parses under a Starlark front-end as well as Blade's (restricted) Python DSL, with identical behaviour under Blade: - `assert len(srcs) == 1, msg` -> `if len(srcs) != 1: fail(msg)` - `deps is None` -> `deps == None` - implicit adjacent-string concatenation -> explicit `+` `isinstance` is kept (both front-ends provide it). This lets flare build under a Go reimplementation of Blade (blade-go) without changing the current build. Also upgrade the vendored blade (thirdparty/blade/blade.zip + GITVERSION) to blade-build master, which adds the `fail()` builtin the change above uses. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>