Skip to content

Commit cc84a14

Browse files
[libc] fix getchar_unlocked (llvm#73874)
A typo was leading to getc_unlocked.cpp.o being included into libc.a twice. I only noticed because I was trying to convert libc.a to a shared object via $ ld.lld -o libc.so --whole-archive libc.a which errored since getc_unlocked was being defined twice.
1 parent bddf5d2 commit cc84a14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/stdio/generic/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ add_entrypoint_object(
319319
add_entrypoint_object(
320320
getchar_unlocked
321321
SRCS
322-
getc_unlocked.cpp
322+
getchar_unlocked.cpp
323323
HDRS
324-
../getc_unlocked.h
324+
../getchar_unlocked.h
325325
DEPENDS
326326
libc.src.errno.errno
327327
libc.include.stdio

0 commit comments

Comments
 (0)