Skip to content

Commit 7f83059

Browse files
authored
Work around newlib compilation failure with clang-15 (-Wno-implicit-function-declaration) (#420)
1 parent 6d623fc commit 7f83059

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pycheribuild/projects/cross/newlib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def setup(self):
9595
super().setup()
9696
# ensure that we don't fall back to system headers (but do use stddef.h from clang...)
9797
self.COMMON_FLAGS.extend(["--sysroot", "/this/path/does/not/exist"])
98+
self.COMMON_FLAGS.extend(["-Wno-implicit-function-declaration"])
9899

99100
target_cflags = self.commandline_to_str(self.essential_compiler_and_linker_flags + self.COMMON_FLAGS)
100101
bindir = self.sdk_bindir

0 commit comments

Comments
 (0)