From c164985233ca5aa55a5e02ac51312fe809b8ed4c Mon Sep 17 00:00:00 2001 From: Jiachen YANG Date: Thu, 12 Sep 2019 16:18:06 +0900 Subject: [PATCH] tweak vs2019 compiler settings to be compatible with newer range-v3 --- Telegram/gyp/common/win.gypi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/gyp/common/win.gypi b/Telegram/gyp/common/win.gypi index 3d2c779c5..e1d9df16d 100644 --- a/Telegram/gyp/common/win.gypi +++ b/Telegram/gyp/common/win.gypi @@ -33,6 +33,8 @@ '/w14834', # [[nodiscard]] '/w15038', # wrong initialization order '/w14265', # class has virtual functions, but destructor is not virtual + '/experimental:preprocessor', # need for range-v3 see https://github.com/ericniebler/range-v3#supported-compilers + '/wd5105', # needed for `/experimental:preprocessor`, suppressing C5105 "macro expansion producing 'defined' has undefined behavior" ], 'TreatWChar_tAsBuiltInType': 'false', },