Skip to content

Instantly share code, notes, and snippets.

View slimsag's full-sized avatar
😸
Herding cats

Stephen Gutekanst slimsag

😸
Herding cats
View GitHub Profile
$ lldb -- /Users/slimsag/Desktop/hexops/zig/build/bin/zig build-exe /Users/slimsag/Desktop/hexops/zig/src/main.zig /Users/slimsag/Desktop/hexops/zig/build/zigcpp/libzigcpp.a /usr/local/opt/llvm/lib/libclangFrontendTool.a /usr/local/opt/llvm/lib/libclangCodeGen.a /usr/local/opt/llvm/lib/libclangFrontend.a /usr/local/opt/llvm/lib/libclangDriver.a /usr/local/opt/llvm/lib/libclangSerialization.a /usr/local/opt/llvm/lib/libclangSema.a /usr/local/opt/llvm/lib/libclangStaticAnalyzerFrontend.a /usr/local/opt/llvm/lib/libclangStaticAnalyzerCheckers.a /usr/local/opt/llvm/lib/libclangStaticAnalyzerCore.a /usr/local/opt/llvm/lib/libclangAnalysis.a /usr/local/opt/llvm/lib/libclangASTMatchers.a /usr/local/opt/llvm/lib/libclangAST.a /usr/local/opt/llvm/lib/libclangParse.a /usr/local/opt/llvm/lib/libclangSema.a /usr/local/opt/llvm/lib/libclangBasic.a /usr/local/opt/llvm/lib/libclangEdit.a /usr/local/opt/llvm/lib/libclangLex.a /usr/local/opt/llvm/lib/libclangARCMigrate.a /usr/local/opt/llvm/lib/libclangRewriteFrontend.a /usr/
$ zig build --prefix $(pwd)/stage2 -Denable-llvm --search-prefix "$(brew --prefix llvm)"
warning(link): library not found for '-lLLVMWindowsManifest'
warning(link): Library search paths:
warning(link): /usr/local/opt/llvm/lib
warning(link): /usr/local/opt/llvm/lib
warning(link): /usr/lib
warning(link): /usr/local/lib
warning(link): library not found for '-lLLVMXRay'
warning(link): Library search paths:
warning(link): /usr/local/opt/llvm/lib
$ zig build --prefix $(pwd)/stage2 -Denable-llvm --search-prefix "$(brew --prefix llvm)"
warning(link): library not found for '-lLLVMWindowsManifest'
warning(link): Library search paths:
warning(link): /usr/local/opt/llvm/lib
warning(link): /usr/local/opt/llvm/lib
warning(link): /usr/lib
warning(link): /usr/local/lib
warning(link): library not found for '-lLLVMXRay'
warning(link): Library search paths:
warning(link): /usr/local/opt/llvm/lib
/Users/slimsag/Desktop/hexops/zig/build/lib/zig/std/fmt.zig:606:17: error: Unable to format type 'anyframe'
else => @compileError("Unable to format type '" ++ @typeName(T) ++ "'"),
^
/Users/slimsag/Desktop/hexops/zig/build/lib/zig/std/fmt.zig:558:35: note: called from here
try formatType(elem, actual_fmt, options, writer, max_depth - 1);
^
/Users/slimsag/Desktop/hexops/zig/build/lib/zig/std/fmt.zig:511:31: note: called from here
try formatType(@field(value, f.name), ANY, options, writer, max_depth - 1);
^
/Users/slimsag/Desktop/hexops/zig/build/lib/zig/std/fmt.zig:511:31: note: called from here
const std = @import("std");
const Allocator = std.mem.Allocator;
pub const Error = error{
EndOfStream,
Utf8InvalidStartByte,
} || std.fs.File.ReadError || std.fs.File.SeekError || std.mem.Allocator.Error;
pub fn Parser(comptime Value: type, comptime Reader: type) type {
return struct {
const std = @import("std");
const Allocator = std.mem.Allocator;
pub const Error = error{
EndOfStream,
Utf8InvalidStartByte,
} || std.fs.File.ReadError || std.fs.File.SeekError || std.mem.Allocator.Error;
pub fn Parser(comptime Value: type, comptime Reader: type) type {
return struct {
const std = @import("std");
const Allocator = std.mem.Allocator;
const Parser = @import("parser.zig").Parser;
const Error = @import("parser.zig").Error;
pub fn Literal(comptime Reader: type) type {
return struct {
parser: Parser([]u8, Reader) = .{
._parse = parse,
},