Fix build with LTO
This commit is contained in:
parent
fbe4e3f0ec
commit
e0d6faf45b
|
@ -59,7 +59,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <malloc.h>
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -746,20 +745,6 @@ int psFixPrevious() {
|
||||||
namespace Platform {
|
namespace Platform {
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
// Avoid stripping custom allocator methods.
|
|
||||||
const auto address = [](auto method) {
|
|
||||||
return reinterpret_cast<uint64>(method);
|
|
||||||
};
|
|
||||||
const auto value = address(malloc)
|
|
||||||
+ address(calloc)
|
|
||||||
+ address(realloc)
|
|
||||||
+ address(free)
|
|
||||||
+ address(aligned_alloc)
|
|
||||||
+ address(malloc_usable_size)
|
|
||||||
+ address(memalign)
|
|
||||||
+ address(posix_memalign);
|
|
||||||
DEBUG_LOG(("Malloc addresses %1.").arg(value ? "non-null" : "null"));
|
|
||||||
|
|
||||||
LOG(("Launcher filename: %1").arg(QGuiApplication::desktopFileName()));
|
LOG(("Launcher filename: %1").arg(QGuiApplication::desktopFileName()));
|
||||||
|
|
||||||
qputenv("PULSE_PROP_application.name", AppName.utf8());
|
qputenv("PULSE_PROP_application.name", AppName.utf8());
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5db0b72cd85b20aec790fccdd31c17111afc7c94
|
Subproject commit cf3eabc443292aad8ee63491274d7865b5e0864c
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit de65519132126db2c2166cdf5af5f12e61652419
|
Subproject commit bcc0ac15f497513455aa144ffe4e658f7aca0e73
|
Loading…
Reference in New Issue