File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -587,6 +587,12 @@ set_target_properties(
587587 # Use a custom .props file to set up Visual D (import paths, predefined versions...).
588588 VS_USER_PROPS "${PROJECT_SOURCE_DIR} /cmake/VisualD.props"
589589)
590+ if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
591+ # FreeBSD LLVM port links to zstd, but does not convey this information via CMake
592+ # Workaround it here until it is fixed in the port
593+ find_package (zstd )
594+ list (APPEND LLVM_LIBRARIES "-l$<TARGET_LINKER_FILE :zstd ::libzstd_shared >" )
595+ endif ()
590596# LDFLAGS should actually be in target property LINK_FLAGS, but this works, and gets around linking problems
591597target_link_libraries (${LDC_LIB} ${LLVM_LIBRARIES} ${LLVM_LDFLAGS} )
592598if (WIN32 )
@@ -707,7 +713,7 @@ build_d_executable(
707713 "${DFLAGS_BUILD_TYPE} ${DFLAGS_LDC} "
708714 "${ALTERNATIVE_MALLOC_O} ;${LDC_LINKERFLAG_LIST} ;${FULLY_STATIC_LDFLAG} "
709715 "${FE_RES} "
710- "${LDC_LIB} "
716+ "${LDC_LIB} ; ${FREEBSD_LDC_DEPS} "
711717 ${COMPILE_D_MODULES_SEPARATELY}
712718)
713719
You can’t perform that action at this time.
0 commit comments