diff --git a/libc/src/string/CMakeLists.txt b/libc/src/string/CMakeLists.txt --- a/libc/src/string/CMakeLists.txt +++ b/libc/src/string/CMakeLists.txt @@ -1,2 +1,20 @@ -add_subdirectory(strcpy) -add_subdirectory(strcat) +add_entrypoint_object( + strcat + SRCS + strcat.cpp + HDRS + strcat.h + DEPENDS + strcpy + string_h +) + +add_entrypoint_object( + strcpy + SRCS + strcpy.cpp + HDRS + strcpy.h + DEPENDS + string_h +) diff --git a/libc/src/string/strcat/strcat.h b/libc/src/string/strcat.h rename from libc/src/string/strcat/strcat.h rename to libc/src/string/strcat.h diff --git a/libc/src/string/strcat/strcat.cpp b/libc/src/string/strcat.cpp rename from libc/src/string/strcat/strcat.cpp rename to libc/src/string/strcat.cpp --- a/libc/src/string/strcat/strcat.cpp +++ b/libc/src/string/strcat.cpp @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#include "src/string/strcat/strcat.h" +#include "src/string/strcat.h" #include "src/__support/common.h" -#include "src/string/strcpy/strcpy.h" +#include "src/string/strcpy.h" namespace __llvm_libc { diff --git a/libc/src/string/strcat/CMakeLists.txt b/libc/src/string/strcat/CMakeLists.txt deleted file mode 100644 --- a/libc/src/string/strcat/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ -add_entrypoint_object( - strcat - SRCS - strcat.cpp - HDRS - strcat.h - DEPENDS - strcpy - string_h -) diff --git a/libc/src/string/strcpy/strcpy.h b/libc/src/string/strcpy.h rename from libc/src/string/strcpy/strcpy.h rename to libc/src/string/strcpy.h diff --git a/libc/src/string/strcpy/strcpy.cpp b/libc/src/string/strcpy.cpp rename from libc/src/string/strcpy/strcpy.cpp rename to libc/src/string/strcpy.cpp --- a/libc/src/string/strcpy/strcpy.cpp +++ b/libc/src/string/strcpy.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "src/string/strcpy/strcpy.h" +#include "src/string/strcpy.h" #include "src/__support/common.h" diff --git a/libc/src/string/strcpy/CMakeLists.txt b/libc/src/string/strcpy/CMakeLists.txt deleted file mode 100644 --- a/libc/src/string/strcpy/CMakeLists.txt +++ /dev/null @@ -1,9 +0,0 @@ -add_entrypoint_object( - strcpy - SRCS - strcpy.cpp - HDRS - strcpy.h - DEPENDS - string_h -) diff --git a/libc/test/src/string/strcat_test.cpp b/libc/test/src/string/strcat_test.cpp --- a/libc/test/src/string/strcat_test.cpp +++ b/libc/test/src/string/strcat_test.cpp @@ -8,7 +8,7 @@ #include -#include "src/string/strcat/strcat.h" +#include "src/string/strcat.h" #include "gtest/gtest.h" TEST(StrCatTest, EmptyDest) { diff --git a/libc/test/src/string/strcpy_test.cpp b/libc/test/src/string/strcpy_test.cpp --- a/libc/test/src/string/strcpy_test.cpp +++ b/libc/test/src/string/strcpy_test.cpp @@ -8,7 +8,7 @@ #include -#include "src/string/strcpy/strcpy.h" +#include "src/string/strcpy.h" #include "gtest/gtest.h" TEST(StrCpyTest, EmptyDest) {