mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 20:56:06 +00:00
[libc] Include empty remove in baremetal stdio.h (#85336)
This is required to avoid compilation error in libc++. See #85335 for more details.
This commit is contained in:
parent
252d01952c
commit
5a75242bc8
@ -79,6 +79,7 @@ set(TARGET_LIBC_ENTRYPOINTS
|
||||
libc.src.inttypes.strtoumax
|
||||
|
||||
# stdio.h entrypoints
|
||||
libc.src.stdio.remove
|
||||
libc.src.stdio.sprintf
|
||||
libc.src.stdio.snprintf
|
||||
libc.src.stdio.vsprintf
|
||||
|
@ -79,6 +79,7 @@ set(TARGET_LIBC_ENTRYPOINTS
|
||||
libc.src.inttypes.strtoumax
|
||||
|
||||
# stdio.h entrypoints
|
||||
libc.src.stdio.remove
|
||||
libc.src.stdio.sprintf
|
||||
libc.src.stdio.snprintf
|
||||
libc.src.stdio.vsprintf
|
||||
|
7
libc/src/stdio/baremetal/CMakeLists.txt
Normal file
7
libc/src/stdio/baremetal/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
add_entrypoint_object(
|
||||
remove
|
||||
SRCS
|
||||
remove.cpp
|
||||
HDRS
|
||||
../remove.h
|
||||
)
|
19
libc/src/stdio/baremetal/remove.cpp
Normal file
19
libc/src/stdio/baremetal/remove.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
//===-- Linux implementation of remove ------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "src/stdio/remove.h"
|
||||
|
||||
#include "src/__support/common.h"
|
||||
|
||||
namespace LIBC_NAMESPACE {
|
||||
|
||||
// TODO: This is a temporary workaround for issue #85335.
|
||||
|
||||
LLVM_LIBC_FUNCTION(int, remove, (const char *)) { return -1; }
|
||||
|
||||
} // namespace LIBC_NAMESPACE
|
Loading…
x
Reference in New Issue
Block a user