spelling: libraries (#12958)

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-05-21 14:00:49 -04:00 committed by GitHub
parent 83d14de518
commit 6703980dc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -364,7 +364,7 @@ set(LINUX_LDFLAGS -target ${LLVM_TARGET}
-l:libc.a
-static)
set(COMMON_LINUX_LINK_LIBRAIRIES configfile)
set(COMMON_LINUX_LINK_LIBRARIES configfile)
if(DEFINED ENV{WSL_DEV_BINARY_PATH})
set(WSL_DEV_BINARY_PATH $ENV{WSL_DEV_BINARY_PATH})

View File

@ -59,17 +59,17 @@ function(add_linux_library_no_sources target sources headers)
endfunction()
function(add_linux_executable target sources headers librairies)
function(add_linux_executable target sources headers libraries)
set(output "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target}")
set(output_unstripped "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target}.unstripped")
build_linux_objects("${sources}" "${headers}")
set(libs -lunwind -lc++abi -lc++)
foreach(e ${librairies})
foreach(e ${libraries})
set(libs ${libs} -l${e})
# Note: This makes the assumption that all librairies are static (.a and not .so).
# Note: This makes the assumption that all libraries are static (.a and not .so).
# Executables need to depend on both the target and the underlying library file, so that
# the libraries target get analyzed for changes, and the executable gets linked again if the .a files changed.
list(APPEND lib_targets "lib${e}")

View File

@ -46,8 +46,8 @@ set(HEADERS
wslpath.h)
set(LINUX_CXXFLAGS ${LINUX_CXXFLAGS} -I "${CMAKE_CURRENT_LIST_DIR}/../netlinkutil")
set(INIT_LIBRAIRIES ${COMMON_LINUX_LINK_LIBRARIES} netlinkutil plan9 mountutil configfile)
add_linux_executable(init "${SOURCES}" "${HEADERS}" "${INIT_LIBRAIRIES}")
set(INIT_LIBRARIES ${COMMON_LINUX_LINK_LIBRARIES} netlinkutil plan9 mountutil configfile)
add_linux_executable(init "${SOURCES}" "${HEADERS}" "${INIT_LIBRARIES}")
add_dependencies(init localization)
set(INITRAMFS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/initrd.img)