Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Function

findNativeMsvcLibDir

Private Function
std.zig.LibCInstallation.findNativeMsvcLibDir
fn findNativeMsvcLibDir(
    self: *LibCInstallation,
    gpa: Allocator,
    sdk: std.zig.WindowsSdk,
) FindError!void

Params

Errors

OutOfMemory
FileSystem
UnableToSpawnCCompiler
CCompilerExitCode
CCompilerCrashed
CCompilerCannotFindHeaders
LibCRuntimeNotFound
LibCStdLibHeaderNotFound
LibCKernel32LibNotFound
UnsupportedArchitecture
WindowsSdkNotFound
DarwinSdkNotFound
ZigIsTheCCompiler

File

zig/LibCInstallation.zig:555
555
556
557
558
559
560
561
562
fn findNativeMsvcLibDir(
    self: *LibCInstallation,
    gpa: Allocator,
    sdk: std.zig.WindowsSdk,
) FindError!void {
    const msvc_lib_dir = sdk.msvc_lib_dir orelse return error.LibCRuntimeNotFound;
    self.msvc_lib_dir = try gpa.dupe(u8, msvc_lib_dir);
}