lidavidm commented on code in PR #2858: URL: https://github.com/apache/arrow-adbc/pull/2858#discussion_r2125308614
########## c/cmake_modules/GoUtils.cmake: ########## @@ -180,36 +201,79 @@ function(add_go_lib GO_MOD_DIR GO_LIBNAME) list(APPEND GO_ENV_VARS "GOARCH=arm64") endif() - add_custom_command(OUTPUT "${LIBOUT_SHARED}.${ADBC_FULL_SO_VERSION}" - WORKING_DIRECTORY ${GO_MOD_DIR} - DEPENDS ${ARG_SOURCES} - COMMAND ${CMAKE_COMMAND} -E env ${GO_ENV_VARS} ${GO_BIN} build - ${GO_BUILD_TAGS} "${GO_BUILD_FLAGS}" -o - ${LIBOUT_SHARED}.${ADBC_FULL_SO_VERSION} - -buildmode=c-shared ${GO_LDFLAGS} . - COMMAND ${CMAKE_COMMAND} -E remove -f - "${LIBOUT_SHARED}.${ADBC_SO_VERSION}.0.h" - COMMENT "Building Go Shared lib ${GO_LIBNAME}" - COMMAND_EXPAND_LISTS) + if(WIN32) Review Comment: The build commands are effectively the same, though. If it's just a matter of filename, can we either (1) introduce a variable to hold the filename, or (2) just rename it after build? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org