mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix build with Xcode.
This commit is contained in:
@@ -107,7 +107,7 @@ static_assert(-(SpecialMsgIdShift + 0xFF) > ServerMaxMsgId);
|
||||
return MsgId(StartClientMsgId.bare + index);
|
||||
}
|
||||
|
||||
[[nodiscrd]] constexpr inline bool IsStoryMsgId(MsgId id) noexcept {
|
||||
[[nodiscard]] constexpr inline bool IsStoryMsgId(MsgId id) noexcept {
|
||||
return (id >= StartStoryMsgId && id < EndStoryMsgId);
|
||||
}
|
||||
[[nodiscard]] constexpr inline StoryId StoryIdFromMsgId(MsgId id) noexcept {
|
||||
|
||||
@@ -9,8 +9,18 @@ function(telegram_add_apple_swift_runtime target_name)
|
||||
return()
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND xcode-select -p
|
||||
OUTPUT_VARIABLE DEVELOPER_DIR
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
set(SWIFT_LIB_DIR
|
||||
"${DEVELOPER_DIR}/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx")
|
||||
|
||||
target_link_options(${target_name}
|
||||
PRIVATE
|
||||
"-L${SWIFT_LIB_DIR}"
|
||||
"-Wl,-rpath,/usr/lib/swift"
|
||||
"-Wl,-rpath,@executable_path/../Frameworks"
|
||||
)
|
||||
|
||||
+1
-1
Submodule Telegram/lib_translate updated: e65fc00f72...03534a63dc
+1
-1
Submodule cmake updated: 34de471d6f...4088db229d
Reference in New Issue
Block a user