Skip to content

Commit

Permalink
build: trigger cpp build when generated ErrorCode files change
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Isaac committed Dec 11, 2024
1 parent 5ef7251 commit 704d1b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/targets/BuildBun.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "build.zig")

set(BUN_USOCKETS_SOURCE ${CWD}/packages/bun-usockets)

# hand written cpp source files. Full list of "source" code (including codegen) is in BUN_CPP_SOURCES
file(GLOB BUN_CXX_SOURCES ${CONFIGURE_DEPENDS}
${CWD}/src/io/*.cpp
${CWD}/src/bun.js/modules/*.cpp
Expand Down Expand Up @@ -632,6 +633,7 @@ register_command(
list(APPEND BUN_CPP_SOURCES
${BUN_C_SOURCES}
${BUN_CXX_SOURCES}
${BUN_ERROR_CODE_OUTPUTS}
${VENDOR_PATH}/picohttpparser/picohttpparser.c
${NODEJS_HEADERS_PATH}/include/node/node_version.h
${BUN_ZIG_GENERATED_CLASSES_OUTPUTS}
Expand Down Expand Up @@ -890,7 +892,7 @@ if(LINUX)
-Wl,--wrap=statx
)
endif()

if(ARCH STREQUAL "x64")
target_link_options(${bun} PUBLIC
-Wl,--wrap=fcntl
Expand Down

0 comments on commit 704d1b9

Please sign in to comment.