Commit Graph

10 Commits

Author SHA1 Message Date
Randy Eckenrode
7ae8a1e519
xcbuild: suppress warnings for unknown keys
Newer SDKs have keys that xcbuild doesn’t recognize. These warnings
generate a lot of noise, especially when `xcrun` is used in an
interactive session, so suppress them.
2024-11-05 13:59:35 -05:00
Randy Eckenrode
c8df66973b
xcbuild: look in system toolchain for binaries on /usr/bin
Dropping `/usr/bin` from the search path of `xcrun` breaks running
system binaries from dev shells. This approach looks them up while
avoiding the recursive `xcrun` issue.
2024-11-05 13:59:26 -05:00
Randy Eckenrode
75bc428cf2
xcbuild: 0.1.2-pre -> 0.1.1-unstable-2019-11-20
xcbuild is archived and will never be updated, so bump it to the last
commit in the repo.
2024-10-10 16:23:03 -04:00
Randy Eckenrode
dd569d8913
xcbuild: avoid xcrun invoking itself via /usr/bin stubs
macOS ships with several stubs in `/usr/bin` that invoke `xcrun` to run
the tools from the active SDK. When `/usr/bin` is in `PATH`, this will
cause `xcrun` from xcbuild to invoke itself over and over. Filtering
`/usr/bin` from `xcrun`’s search path prevents this from happening.
2024-10-10 16:23:03 -04:00
Randy Eckenrode
fee84be752
xcbuild: suppress xcbuild passthru warning for now 2024-10-10 16:23:03 -04:00
Randy Eckenrode
49834c3000
xcbuild: suppress warning for now
Enabling this by default requires additional clean that will be done
after the Darwin refactor has been merged.
2024-10-10 16:23:03 -04:00
Randy Eckenrode
118a214ac5
xcbuild: warn when someone tries to override sdkVer
xcbuild determines the SDK dynamically, so overriding the `sdkVer` no
longer works. If packages want to change the SDK, they need to add one
of the SDK packages to their inputs.
2024-10-10 16:23:03 -04:00
Randy Eckenrode
15ac657942
xcbuild: refactor to support the new SDKs
Take advantage of the new Darwin SDKs to dynamically determine SDK
information such as path, version, and binaries (via `xcrun --find`).
This is accomplished by relying on the existance of `DEVELOPER_DIR`,
which the SDK will set up in nixpkgs.
2024-10-10 16:23:02 -04:00
Randy Eckenrode
f51c62a7f8
xcbuild: format with nixfmt-rfc-style 2024-10-10 16:23:02 -04:00
Randy Eckenrode
45e65c16d2
xcbuild: move to pkgs/by-name 2024-10-10 16:23:02 -04:00