mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:57:34 +00:00
LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore
With this change, System::foo() becomes Core::System::foo(). Since LibCore builds on other systems than SerenityOS, we now have to make sure that wrappers work with just a standard C library underneath.
This commit is contained in:
parent
acc2eccede
commit
21a5fb0fa2
32 changed files with 165 additions and 173 deletions
|
@ -1,13 +1,7 @@
|
|||
set(SOURCES
|
||||
Wrappers.cpp
|
||||
syscall.cpp
|
||||
)
|
||||
|
||||
# FIXME: This is a hack to avoid a circular dependency with LibC. Figure out a better way.
|
||||
if ("${SERENITY_ARCH}" STREQUAL "i686")
|
||||
set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-fno-stack-protector")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")
|
||||
serenity_libc(LibSystem system)
|
||||
target_include_directories(LibSystem PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue