[libc][NFC] Move blockstore out of the CPP folder

This commit is contained in:
Guillaume Chatelet 2022-08-19 21:51:40 +00:00
parent cf3654ccc6
commit f00567eceb
8 changed files with 19 additions and 19 deletions

View File

@ -1,5 +1,11 @@
add_subdirectory(CPP) add_subdirectory(CPP)
add_header_library(
blockstore
HDRS
blockstore.h
)
add_header_library( add_header_library(
common common
HDRS HDRS

View File

@ -102,12 +102,6 @@ add_header_library(
atomic.h atomic.h
) )
add_header_library(
blockstore
HDRS
blockstore.h
)
add_header_library( add_header_library(
error error
HDRS HDRS

View File

@ -287,7 +287,7 @@ add_entrypoint_object(
20 # For constinit of the atexit callback list. 20 # For constinit of the atexit callback list.
DEPENDS DEPENDS
libc.src.__support.fixedvector libc.src.__support.fixedvector
libc.src.__support.CPP.blockstore libc.src.__support.blockstore
libc.src.__support.threads.mutex libc.src.__support.threads.mutex
) )

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "src/stdlib/atexit.h" #include "src/stdlib/atexit.h"
#include "src/__support/CPP/blockstore.h" #include "src/__support/blockstore.h"
#include "src/__support/common.h" #include "src/__support/common.h"
#include "src/__support/fixedvector.h" #include "src/__support/fixedvector.h"
#include "src/__support/threads/mutex.h" #include "src/__support/threads/mutex.h"

View File

@ -1,5 +1,15 @@
add_libc_testsuite(libc_support_unittests) add_libc_testsuite(libc_support_unittests)
add_libc_unittest(
blockstore_test
SUITE
libc_support_unittests
SRCS
blockstore_test.cpp
DEPENDS
libc.src.__support.blockstore
)
add_libc_unittest( add_libc_unittest(
endian_test endian_test
SUITE SUITE

View File

@ -71,16 +71,6 @@ add_libc_unittest(
libc.src.__support.CPP.atomic libc.src.__support.CPP.atomic
) )
add_libc_unittest(
blockstore_test
SUITE
libc_cpp_utils_unittests
SRCS
blockstore_test.cpp
DEPENDS
libc.src.__support.CPP.blockstore
)
add_libc_unittest( add_libc_unittest(
stringstream_test stringstream_test
SUITE SUITE

View File

@ -6,7 +6,7 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "src/__support/CPP/blockstore.h" #include "src/__support/blockstore.h"
#include "utils/UnitTest/Test.h" #include "utils/UnitTest/Test.h"
struct Element { struct Element {