Disable warnings from Swift backtrace on macOS 26

Many of the system tools seems to be written in Swift now, which results
in a warning when running them:

  swift runtime: backtrace-on-crash is not supported for privileged
  executables

Luckily we can silence this warning via 'warnings=suppressed'.

See https://forums.swift.org/t/suppressing-backtrace-warnings/79235

Change-Id: I09b97553d996269fd4c9d23bf52a319bf964c833
Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
This commit is contained in:
Tor Arne Vestbø
2025-07-04 23:44:37 +02:00
parent 9de9e75b02
commit 17bcaae8bc

View File

@@ -9,4 +9,4 @@ defaults write com.apple.CrashReporter DialogType server
# shellcheck source=../common/unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
SetEnvVar "SWIFT_BACKTRACE" "enable=yes,output-to=stderr,preset=medium,interactive=false"
SetEnvVar "SWIFT_BACKTRACE" "enable=yes,output-to=stderr,preset=medium,interactive=false,warnings=suppressed"