mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-22 02:49:29 +03:00
d3cf68a540
By linking with LibMain, your program no longer needs to provide main(). Instead, execution begins in this function: ErrorOr<int> serenity_main(Main::Arguments); This allows programs that link with LibMain to use TRY() already in their entry function, without having to do manual ErrorOr unwrapping. This is very experimental, but it seems like a nice idea so let's try it out. :^)
7 lines
91 B
CMake
7 lines
91 B
CMake
set(SOURCES
|
|
Main.cpp
|
|
)
|
|
|
|
serenity_lib(LibMain main)
|
|
target_link_libraries(LibMain LibC)
|