Skip to content

Opt out of standard library memory_resource on macOS < 14 and iOS < 17

Stefan Gerlach requested to merge sgerlach/qtbase:kde/5.15 into kde/5.15

Although the header is available, and the compiler reports that the standard library supports memory_resource, the feature is only available on macOS 14 and iOS 17, as reported by

https://developer.apple.com/xcode/cpp/

macOS packages build on gitlab crashes on macOS < 14 with something like

dyld[56529]: Symbol not found: __ZTVNSt3__13pmr15memory_resourceE
  Referenced from: <UUID> qt6/qtbase/build_arm64/libexec/moc
  Expected in:     <UUID> /usr/lib/libc++.1.dylib

Fixes: QTBUG-482392 Change-Id: I50c1425334b9b9842b253442e2b3aade637783ea (cherry picked from commit f7c8ff51)

Edited by Stefan Gerlach

Merge request reports