fix: use jemalloc to temporary circumvention of crash issues

log: as title
This commit is contained in:
tsic404 2023-05-10 17:51:31 +08:00 committed by Tsic
parent 3932b3637e
commit b9e5abf214
3 changed files with 11 additions and 0 deletions

1
debian/control vendored
View File

@ -7,6 +7,7 @@ Build-Depends:
debhelper-compat (= 11),
pkg-config,
libcap-dev,
libjemalloc-dev,
qt5-qmake,
qtbase5-dev,
qttools5-dev,

View File

@ -2,6 +2,10 @@ set(BIN_NAME dde-application-loader)
pkg_check_modules(LIBCAP REQUIRED IMPORTED_TARGET libcap)
#TODO: use jemalloc to temporary circumvention of crash issues,
#find the root cause and remove jemalloc
pkg_check_modules(JEMALLOC REQUIRED IMPORTED_TARGET jemalloc)
set(SRCS
./main.cpp
../modules/tools/desktop_deconstruction.hpp
@ -36,6 +40,7 @@ add_executable(${BIN_NAME} ${SRCS})
target_link_libraries(${BIN_NAME}
pthread
PkgConfig::LIBCAP
PkgConfig::JEMALLOC
stdc++fs
Qt5::Core
)

View File

@ -16,6 +16,10 @@ pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0 gio-unix-2.0)
pkg_check_modules(GLib REQUIRED IMPORTED_TARGET glib-2.0)
pkg_check_modules(QGSettings REQUIRED IMPORTED_TARGET gsettings-qt)
#TODO: use jemalloc to temporary circumvention of crash issues,
#find the root cause and remove jemalloc
pkg_check_modules(JEMALLOC REQUIRED IMPORTED_TARGET jemalloc)
qt5_add_dbus_adaptor(ADAPTER_SOURCES
../../dbus/org.deepin.dde.Application1.Manager.xml
impl/application_manager.h
@ -62,6 +66,7 @@ target_link_libraries(${BIN_NAME}
PkgConfig::GIO
PkgConfig::GLib
PkgConfig::QGSettings
PkgConfig::JEMALLOC
${DtkWidget_LIBRARIES}
)