Lines Matching +full:bazel +full:- +full:build +full:- +full:check
5 # SPDX-License-Identifier: BSD-3-Clause
9 # CMake and Bazel.
35 "**/BUILD.bazel",
37 "**/*.BUILD",
42 …LE_REGEX = re.compile(r'\s*commit\s*=\s*\"(?P<commit>[0-9a-fA-F]+)\"\s*,\s*#\s*keep-in-sync-with-s…
44 BAZEL_VERSION_REGEX = re.compile(r'module\(\s*name\s*=\s*"pico-sdk",\s*version\s*=\s*"(?P<sdk_versi…
48 # Sometimes the build systems are supposed to be implemented differently. This
49 # allowlist permits the descriptions to differ between CMake and Bazel.
51 # Minor semantic differences in Bazel.
53 # In Bazel, not overridable by user environment variables (only flags).
55 # In Bazel, it's a build label rather than a path.
57 # In Bazel, the semantics of embedded binary info are slightly different.
66 # Not relevant to Bazel: toolchain is fetched dynamically, and can be
67 # overridden with native Bazel features.
69 # Bazel uses native --platforms mechanics.
71 # Named PICO_TOOLCHAIN in Bazel.
73 # Entirely irrelevant to Bazel, use Bazel platforms:
74 # https://bazel.build/extending/platforms
79 # Bazel build uses PICO_CONFIG_EXTRA_HEADER and PICO_CONFIG_PLATFORM_HEADER
84 # Bazel uses PICO_CONFIG_HEADER.
88 # Bazel supports this differently.
92 # Bazel will not provide a default for this.
96 # Bazel always has picotool.
98 # These aren't supported as build flags in Bazel. Prefer to
115 # doesn't have native Bazel support.
117 # Bazel can't do pico_set_* for the binary info defines, so there's a
120 # Bazel analogue for PICO_CMAKE_BUILD_TYPE.
131 # - PICO_BOARD_CMAKE_DIRS
132 # - PICO_BOARD_HEADER_FILE
133 # - PICO_BOARD_HEADER_DIRS
135 # Bazel configuration for 3p deps.
140 # CMake has PICO_DEFAULT_CLIB, but it's not user-facing.
155 # libraries. That's an antipattern in Bazel, so there's flags to control
206 _LOG.warning(f" {cmake_option.name} does not exist in Bazel")
214 _LOG.error(" Bazel and CMAKE definitions do not match:")
216 _LOG.error(f" [BAZEL] {cmake_option}")
242 with open(Path(SDK_ROOT) / "MODULE.bazel", "r") as bazel_module_file:
249 ("git", "-C", SDK_ROOT, "rev-parse", f'HEAD:{maybe_match.group("dependency")}'),
251 check=True,
257 _LOG.error(" [BAZEL] %s", maybe_match.group("commit"))
265 # Find version string specified in Bazel.
266 bazel_module_file_path = Path(SDK_ROOT) / "MODULE.bazel"
270 _LOG.error(" Failed to find Bazel Pico SDK version string")
290 cmake_version_string += "-" + cmake_version_parts["PRE_RELEASE_ID"]
293 …_LOG.error(" Declared CMake SDK version is %s and Bazel is %s", cmake_version_string, bazel_ver…
311 _LOG.info("[1/3] Checking build system configuration flags...")
317 # For now, allow CMake and Bazel to go out of sync when it comes to
318 # build configurability since it's a big ask to make contributors
323 _LOG.info("[2/4] Checking build system defines...")