Skip to content

Commit 72c6542

Browse files
committed
Fix picolibc build
we have to create the libgcc directory before running configure. It used to only be needed for compilation, but now the meson checks also need it.
1 parent 1dd083d commit 72c6542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycheribuild/projects/cross/picolibc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def default_ldflags(self):
125125
result += ["-L" + str(self.build_dir / "local-libgcc"), "-nostdlib"]
126126
return result
127127

128-
def compile(self, **kwargs):
128+
def configure(self, **kwargs):
129129
if not self.compiling_for_host():
130130
# Symlink libgcc.a to the build dir to allow linking against it without adding all of <sysroot>/lib.
131131
self.makedirs(self.build_dir / "local-libgcc")
@@ -134,7 +134,7 @@ def compile(self, **kwargs):
134134
self.build_dir / "local-libgcc/libgcc.a",
135135
print_verbose_only=False,
136136
)
137-
super().compile(**kwargs)
137+
super().configure(**kwargs)
138138

139139
def install(self, **kwargs):
140140
super().install(**kwargs)

0 commit comments

Comments
 (0)