summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
diff options
context:
space:
mode:
authorSam <30577766+Samasaur1@users.noreply.github.com>2025-11-08 20:16:29 -0700
committerSam <30577766+Samasaur1@users.noreply.github.com>2025-11-09 00:00:27 -0700
commit5b123afb9a54ab3514c113d2a8164a0f9fb245e2 (patch)
treeeddcaae7c84806b533e0e7ffe8284ca0dc997c7a /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
parent89f7581b9e4c739a3d4a95559981112cd469ac11 (diff)
swiftPackages.swift: prefix unguarded-availability flag with -Xcc
The Swift wrapper uses a hook directly from cc-wrapper to set the `-target` flag appropriately. This works because Clang and Swift use the same syntax for `-target`, but there was never a guarantee that this compatibility would be true for every option set in the hook. Indeed, commit 369cc5c66b1efdbca2f136aa0055fedca1117304 (PR #445119) made availability warnings into errors by setting the `-Werror=unguarded-availability` flag in this hook, which Swift doesn't accept at the top level. This caused all invocations of Swift to fail with the error `unknown argument: '-Werror=unguarded-availability'` - including the bootstrap Swift, which meant that `swiftPackages.swift` would fail. This commit adds all `-Werror` flags to the list of flags that need to be prefixed with `-Xcc`. I could have just dropped the flag, since Swift already makes this an error, but you can have C/C++ targets in Swift packages and we'd want to pass this flag on to them. (I'm not sure whether the clang used for those targets is already wrapped, but if it is there is no harm done.)
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions