Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

25 changes: 24 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,30 @@ target_compile_definitions(snuk_configs INTERFACE

option(SNUK_BUILD_SHARED "Build shared library" OFF)

add_subdirectory(external)
include(FetchContent)

FetchContent_Declare(
snlogger
GIT_REPOSITORY https://github.com/kshku/SnLogger.git
GIT_TAG main
)
FetchContent_MakeAvailable(snlogger)

FetchContent_Declare(
snfile
GIT_REPOSITORY https://github.com/kshku/SnFile.git
GIT_TAG main
)
FetchContent_MakeAvailable(snfile)

FetchContent_Declare(
snmemory
GIT_REPOSITORY https://github.com/kshku/SnMemory.git
GIT_TAG main
)

target_link_libraries(snuk_configs INTERFACE snlogger snfile snmemory)

add_subdirectory(docs)
add_subdirectory(src)
add_subdirectory(repl)
Expand Down
1 change: 0 additions & 1 deletion external/SnFile
Submodule SnFile deleted from 993e29
1 change: 0 additions & 1 deletion external/SnLogger
Submodule SnLogger deleted from 534235
1 change: 0 additions & 1 deletion external/SnMemory
Submodule SnMemory deleted from b0e1d5
2 changes: 1 addition & 1 deletion src/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void snuk_free(void *ptr) {

static bool create_allocator(SnukPageAllocator *allocator, uint32_t pages) {
*allocator = (SnukPageAllocator){
.base = sn_vm_reserve(pages),
.base = sn_vm_reserve(NULL, pages),
.total_pages = pages,
.committed_pages = 0,
.reverse_committed_pages = 0,
Expand Down
Loading