Skip to content

Commit 98daad1

Browse files
authored
Fix stack option when deriving from a Target (ZigEmbeddedGroup#788)
1 parent e82f385 commit 98daad1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-internals/build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ pub const Target = struct {
8383
hal: ?HardwareAbstractionLayer = null,
8484
board: ?Board = null,
8585
linker_script: ?LinkerScript = null,
86+
stack: ?Stack = null,
8687
entry: ?Build.Step.Compile.Entry = null,
8788
patch_elf: ?*const fn (*Build.Dependency, LazyPath) LazyPath = null,
8889
};
@@ -102,6 +103,7 @@ pub const Target = struct {
102103
.hal = options.hal orelse from.hal,
103104
.board = options.board orelse from.board,
104105
.linker_script = options.linker_script orelse from.linker_script,
106+
.stack = options.stack orelse from.stack,
105107
.entry = options.entry orelse from.entry,
106108
.patch_elf = options.patch_elf orelse from.patch_elf,
107109
};

0 commit comments

Comments
 (0)