Fix build for Xcode 10.

This commit is contained in:
John Preston 2018-09-18 13:43:14 +03:00
parent 62ffd93cb7
commit 377689ae86
7 changed files with 10 additions and 4 deletions

View File

@ -119,6 +119,8 @@ Call::ControllerPointer::~ControllerPointer() {
reset();
}
Call::Delegate::~Delegate() = default;
Call::Call(
not_null<Delegate*> delegate,
not_null<UserData*> user,

View File

@ -47,6 +47,8 @@ public:
};
virtual void playSound(Sound sound) = 0;
virtual ~Delegate();
};
static constexpr auto kSoundSampleMs = 100;

View File

@ -96,7 +96,7 @@ public:
std::is_assignable_v<Type&, OtherType>>>
variable(producer<OtherType, Error, Generator> &&stream) {
std::move(stream)
| start_with_next([this](auto &&data) {
| start_with_next([=](auto &&data) {
assign(std::forward<decltype(data)>(data));
}, _lifetime);
}
@ -111,7 +111,7 @@ public:
producer<OtherType, Error, Generator> &&stream) {
_lifetime.destroy();
std::move(stream)
| start_with_next([this](auto &&data) {
| start_with_next([=](auto &&data) {
assign(std::forward<decltype(data)>(data));
}, _lifetime);
return *this;

@ -1 +1 @@
Subproject commit 6053cf5dce58c12ef6ce2d2f6cbe77fd5b10c575
Subproject commit 9b292fdbc84f148f736407176facc920e20592f9

View File

@ -28,7 +28,7 @@ else
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode-ninja
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode
# use patched gyp with Xcode project generator
../../../Libraries/gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out -Gxcode_upgrade_check_project_version=940 -Dofficial_build_target=$BuildTarget Telegram.gyp --format=xcode
../../../Libraries/gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out -Gxcode_upgrade_check_project_version=1000 -Dofficial_build_target=$BuildTarget Telegram.gyp --format=xcode
fi
cd ../..

View File

@ -62,6 +62,7 @@
'CLANG_CXX_LANGUAGE_STANDARD': 'c++1z',
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
'ALWAYS_SEARCH_USER_PATHS': 'NO',
},
'configurations': {
'Debug': {

View File

@ -40,6 +40,7 @@
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
'OTHER_LDFLAGS': [
'-isysroot', '/',
'-lbase',
'-lcrashpad_client',
'-lcrashpad_util',