Added unistd.h and some linux syscall wrappers
This commit is contained in:
@@ -39,7 +39,7 @@ set(CMAKE_EXE_LINKER_FLAGS
|
||||
"${CMAKE_EXE_LINKER_FLAGS} -ffreestanding -nostdlib -lgcc")
|
||||
|
||||
set(photon_libc_sources "")
|
||||
set(generic_dirs string)
|
||||
set(generic_dirs string stdio)
|
||||
|
||||
foreach (dir ${generic_dirs})
|
||||
file(GLOB dir_sources ${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/${dir}/*.c)
|
||||
@@ -74,6 +74,7 @@ target_compile_options(c PRIVATE -ffreestanding -nostdlib -nostdinc)
|
||||
target_link_libraries(c crt)
|
||||
|
||||
target_include_directories(c PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/include)
|
||||
target_include_directories(c PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/sys/${PLATFORM}/)
|
||||
|
||||
add_custom_target(sysroot
|
||||
DEPENDS ${photon_libc_headers}
|
||||
|
||||
Reference in New Issue
Block a user