Skip to main content

19 docs tagged with "facet:toolchain"

View all tags

Toolchain

Vite, Webpack, pnpm and Vitest: how source becomes a bundle, a dependency tree and a test result.

Toolchain: Build and Cross-Compile

从 go build 的缓存键、-trimpath 与 -buildvcs 讲到 -ldflags 注入、GOOS/GOARCH 矩阵与 CGO_ENABLED=0 静态链接,并覆盖 -s -w 的体积代价、//go:embed 的嵌入规则、多阶段镜像与 go version -m 溯源。

Toolchain: CMake

CMake 用 target 承载编译与链接属性,用生成器产出 Ninja 或 Visual Studio 工程,用 install/export 把使用要求交给下游;本页说明属性如何传播、预设如何固定,以及链接期故障如何定位。

Toolchain: Compiler and Build Model

C 编译器驱动把每个 .c 走完预处理、编译、汇编、链接四段;本页给出四段的命令与产物、头文件搜索与 -std/-O/-g/警告/严格别名/可复现/交叉编译的取舍,并按阶段定位典型故障。

Toolchain: Compilers and Standards

gcc、clang、msvc 把同一份源码翻译成互不兼容的二进制:`-std` 决定语言与库特性,ABI 开关决定两个目标文件能否链接,本页按这两条线组织编译器的选择与排障。

Toolchain: Declarations and Config

Where types come from: source, declaration files and inference; how the compiler resolves modules; how tsconfig and project references organise a build; and the two decorator systems.

Toolchain: Dependencies

C++ 没有中央包仓库,依赖由 vcpkg、Conan、CPM 或手工 vendoring 各自解决;本页说明包的真实身份为何是版本加 ABI 元组,以及二进制缓存、许可证与供应链检查如何落地。

Toolchain: Make and CMake

Make 用规则与时间戳做增量构建,CMake 用 target 与属性描述依赖再生成 Ninja/Make 工程;本页给出两者的完整机制、同一项目的最小双实现、生成器与 preset 选择,以及依赖文件与 install/export 的故障定位。

Toolchain: Modules and Packaging

The import system, the src layout, pyproject build backends, wheels and sdists, and the environment and lock tools that make a resolution reproducible.

Toolchain: Packaging

C 的打包决定静态库还是共享库、soname 与符号可见性如何界定 ABI、pkg-config 如何向消费者传播头文件与链接参数,以及 vendoring、发行版与许可证的取舍;本页给出可复制的构建、安装与消费追踪。

Toolchain: Test and Debug

C 的测试与调试由断言、Unity/CMocka、五种 sanitizer、gdb/lldb、valgrind、perf/strace、gcov/llvm-cov 与 libFuzzer/AFL++ 组成;本页给出各自的插桩方式、按项目类型的选型矩阵,以及“测试通过但 ASan 报错”这类故障的定位顺序。

Toolchain: Test and Debug

测试框架提供输入,sanitizer 提供正确性判据,调试器与 perf 观测真实二进制;本页说明 GoogleTest、Catch2、doctest、ASan/UBSan/TSan/LSan、gdb/lldb、覆盖率与 fuzzing 各自回答什么问题。

Toolchain: Test and Profile

从 go test 的包选择、表驱动与 t.Run 子测试,到 -race 的开销、-benchmem 与 benchstat 的对比方法、fuzz 与覆盖率门禁,并说明 CPU、heap、block、mutex profile 与 trace 各自回答什么问题。遇到缓存假绿、flaky 与覆盖率停滞时能按信号定位。

Toolchain: Testing

JUnit 5 architecture, the extension model, test doubles, Testcontainers and the surefire and failsafe split.

Toolchain: Version and Modules

从 go 与 toolchain 指令、GOTOOLCHAIN 的切换规则讲到 MVS 算出的构建列表,覆盖 go.sum 校验、replace、retract、vendor 与私有模块代理。遇到 checksum mismatch、inconsistent vendoring 或 go.mod 版本要求不满足时,能按信号定位根因。