Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 6ca34b4

Browse files
committed
add zestcode lib build target
1 parent a0a8e51 commit 6ca34b4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

meson.build

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ add_global_link_arguments(optimization_flags, linker_flags, formatting_flags, wa
9090
include = include_directories('./include')
9191

9292
# this is what user projects will link against, so we use declare_dependency instead of static_library
93-
zestcode_dep = declare_dependency(
93+
zestcode = static_library(
94+
'zestcode',
9495
sources: source,
9596
include_directories: include,
9697
dependencies: dependency('v5_header'),
@@ -103,8 +104,8 @@ elf = executable(
103104
include_directories: include,
104105
dependencies: [
105106
dependency('v5'),
106-
zestcode_dep.as_link_whole() # link whole so libc symbols are overridden
107-
]
107+
],
108+
link_whole: zestcode
108109
)
109110

110111
# meson won't create the binary file for uploading, so we have to do it ourselves
@@ -115,4 +116,4 @@ custom_target(
115116
input: elf,
116117
build_by_default: true, # otherwise it won't be built
117118
command: [objcopy, ['-O', 'binary', '-S', '@INPUT@', '@OUTPUT@']],
118-
)
119+
)

0 commit comments

Comments
 (0)