Module
Fields of this type
Fields
- owner:*std.Build
- root_source_file:?LazyPath
- import_table:std.StringArrayHashMapUnmanaged(*Module)
- The modules that are mapped into this module's import table.
- resolved_target:?std.Build.ResolvedTarget
- = null
- optimize:?std.builtin.OptimizeMode
- = null
- dwarf_format:?std.dwarf.Format
- c_macros:ArrayList([]const u8)
- include_dirs:ArrayList(IncludeDir)
- lib_paths:ArrayList(LazyPath)
- rpaths:ArrayList(RPath)
- frameworks:std.StringArrayHashMapUnmanaged(LinkFrameworkOptions)
- link_objects:ArrayList(LinkObject)
- strip:?bool
- unwind_tables:?std.builtin.UnwindTables
- single_threaded:?bool
- stack_protector:?bool
- stack_check:?bool
- sanitize_c:?std.zig.SanitizeC
- sanitize_thread:?bool
- fuzz:?bool
- code_model:std.builtin.CodeModel
- valgrind:?bool
- pic:?bool
- red_zone:?bool
- omit_frame_pointer:?bool
- error_tracing:?bool
- link_libc:?bool
- link_libcpp:?bool
- no_builtin:?bool
- export_symbol_names:[]const []const u8
- Symbols to be exported when compiling to WebAssembly.
- cached_graph:Graph
- Caches the result of `getGraph` when called multiple times.
Type definitions in this namespace
Types
- CreateOptions
- Unspecified options here will be inherited from parent `Module` when
- Graph
- Elements of `modules` and `names` are matched one-to-one.
Functions in this namespace
Functions
- addImport
- Adds an existing module to be used with `@import`.
- addAnonymousImport
- Creates a new module and adds it to be used with `@import`.
- addOptions
- Converts a set of key-value pairs into a Zig source file, and then inserts it into
- addCSourceFiles
- Handy when you have many non-Zig source files and want them all to have the same flags.
- addWin32ResourceFile
- Resource files must have the extension `.rc`.
- addCMacro
- Equvialent to the following C code, applied to all C source files owned by
- getGraph
- Intended to be used during the make phase only.