Skip to content

Commit

Permalink
fix: Windows stage0 linking
Browse files Browse the repository at this point in the history
  • Loading branch information
hargoniX committed Jan 13, 2025
1 parent 2421f7f commit e3ab8f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
string(APPEND LEAN_EXTRA_LINKER_FLAGS " -Wl,--stack,${LEAN_WIN_STACK_SIZE}")
set(EXTRA_UTIL_LIBS ${EXTRA_UTIL_LIBS} -lpsapi)
endif()
# Link against winsock2
string(APPEND LEAN_EXTRA_LINKER_FLAGS " -lws2_32")
string(APPEND LEAN_EXTRA_CXX_FLAGS " -D LEAN_WINDOWS -D LEAN_WIN_STACK_SIZE=${LEAN_WIN_STACK_SIZE}")
# do not import the world from windows.h using appropriately named flag
string(APPEND LEAN_EXTRA_CXX_FLAGS " -D WIN32_LEAN_AND_MEAN")
Expand Down
2 changes: 2 additions & 0 deletions stage0/src/CMakeLists.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3ab8f7

Please sign in to comment.