This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const builtin = @import("builtin"); | |
const testing = std.testing; | |
const process = std.process; | |
const fs = std.fs; | |
const ChildProcess = std.ChildProcess; | |
var a: *std.mem.Allocator = undefined; | |
pub fn main() !void { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |