mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-26 09:44:33 +00:00
fix windows build
This commit is contained in:
parent
c7c51e808c
commit
57da24f4fc
@ -14,28 +14,8 @@
|
||||
#include <QList>
|
||||
#include <deploy.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <execinfo.h>
|
||||
|
||||
void handler(int sig) {
|
||||
void *array[10];
|
||||
size_t size;
|
||||
|
||||
// get void*'s for all entries on the stack
|
||||
size = backtrace(array, 10);
|
||||
|
||||
// print out all the frames to stderr
|
||||
fprintf(stderr, "Error: signal %d:\n", sig);
|
||||
backtrace_symbols_fd(array, size, STDERR_FILENO);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
|
||||
signal(SIGSEGV, handler); // install our handler
|
||||
|
||||
|
||||
QCoreApplication::setOrganizationName("QuasarApp");
|
||||
QCoreApplication::setOrganizationDomain("https://github.com/QuasarApp");
|
||||
QCoreApplication::setApplicationName("CQtDeployer");
|
||||
|
Loading…
x
Reference in New Issue
Block a user