Skip to content

Instantly share code, notes, and snippets.

@lachlanm-git
lachlanm-git / list_info_echo.zig
Created January 24, 2024 04:42
Serial PR verify: Windows ANSI API
/// Quick example to validate PR: https://github.com/ZigEmbeddedGroup/serial/pull/13
///
/// Output of program:
/// -----------------------------------------------------------------------
/// Port name (5): COM5
/// - System location (9): \\.\COM5
/// - Friendly name (23): USB Serial Port (COM5)
/// - Description (16): USB Serial Port
/// - Manufacturer (5): FTDI
/// - Serial # (9): DP03W90FA
@lachlanm-git
lachlanm-git / build.zig
Created December 29, 2023 10:41
[WINDOWS] build.zig > clang_rt.profile-x86_64.lib
/// Placed in the `compiler-rt/` folder of llvm-project: https://github.com/llvm/llvm-project
/// This builds the clang_rt.profile (for Windows) so that it can be linked with zig `--coverage`
/// to produce successful linking and .gcda files.
///
/// It should be pretty straightforward to make this more cross-platform.
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});