mirror of
https://github.com/zap-proto/cpp-core.git
synced 2026-10-30 15:06:00 +00:00
CI on the build-system-rebrand commit surfaced two gaps the rebrand agent
couldn't see (no Bazel on its host; it ran configure+make directly, not
super-test.sh):
- src/zap/BUILD.bazel: the zapc cc_library and the compiler cc_test glob never
listed desugar.{c++,h}/desugar-test.c++, so module-loader.c++ failed with
'undeclared inclusion of desugar.h'. Now wired (parity with Makefile.am+CMake).
- super-test.sh and 7 sibling scripts lost their +x bit in the rename churn →
'./super-test.sh: Permission denied' (exit 126). Restored.
16 lines
559 B
Bash
Executable File
16 lines
559 B
Bash
Executable File
#! /usr/bin/env bash
|
|
# Run this script every time compiler generated code changes to update checked-in generated code.
|
|
|
|
set -euo pipefail
|
|
|
|
export PATH=$PWD/bin:$PWD:$PATH
|
|
|
|
bazel build src/zap/zap_tool src/zap/zapc-c++
|
|
|
|
bazel-bin/src/zap/zap_tool compile -Isrc --no-standard-import --src-prefix=src \
|
|
-obazel-bin/src/zap/zapc-c++:src \
|
|
src/zap/c++.zap src/zap/schema.zap src/zap/stream.zap \
|
|
src/zap/compiler/lexer.zap src/zap/compiler/grammar.zap \
|
|
src/zap/rpc.zap src/zap/rpc-twoparty.zap src/zap/persistent.zap \
|
|
src/zap/compat/json.zap
|