Commit Graph

12 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Alyssa Ross
486a123440 symbolicator: 23.11.2 -> 24.7.1
Required to build with Rust 1.80.

Link: https://github.com/rust-lang/rust/issues/127343
2024-08-14 13:38:17 +02:00
a-n-n-a-l-e-e
ce789e7e35
llvmPackages_{12,13,14,15,16,17,git}.{libcxx,libcxxabi}: merge libcxxabi into libcxx (#292043)
- merge libcxxabi into libcxx for LLVM 12, 13, 14, 15, 16, 17, and git.
- remove the link time workaround `-lc++ -lc++abi` from 58 packages as it is no longer required.
- fixes https://github.com/NixOS/nixpkgs/issues/166205
- provides alternative fixes for. https://github.com/NixOS/nixpkgs/issues/269548 https://github.com/NixOS/nix/issues/9640
- pkgsCross.x86_64-freebsd builds work again

This change can be represented in 3 stages
1. merge libcxxabi into libcxx -- files: pkgs/development/compilers/llvm/[12, git]/{libcxx, libcxxabi}
2. update stdenv to account for merge -- files: stdenv.{adapters, cc.wrapper, darwin}
3. remove all references to libcxxabi outside of llvm (about 58 packages modified)

### merging libcxxabi into libcxx
- take the union of the libcxxabi and libcxx cmake flags
- eliminate the libcxx-headers-only package - it was only needed to break libcxx <-> libcxxabi circular dependency
- libcxx.cxxabi is removed. external cxxabi (freebsd) will symlink headers / libs into libcxx.
- darwin will re-export the libcxxabi symbols into libcxx so linking `-lc++` is sufficient.
- linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient.
- libcxx/default.nix [12, 17] are identical except for patches and `LIBCXX_ADDITIONAL_LIBRARIES` (only used in 16+)
- git/libcxx/defaul.nix  does not link with -nostdlib when useLLVM is true so flag is removed. this is not much different than before as libcxxabi used -nostdlib where libcxx did not, so libc was linked in anyway.

### stdenv changes
- darwin bootstrap, remove references to libcxxabi and cxxabi
- cc-wrapper: remove c++ link workaround when libcxx.cxxabi doesn't exist (still exists for LLVM pre 12)
- adapter: update overrideLibcxx to account for a pkgs.stdenv that only has libcxx

### 58 package updates
- remove `NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}` as no longer needed
- swift, nodejs_v8 remove libcxxabi references in the clang override

https://github.com/NixOS/nixpkgs/pull/292043
2024-03-11 03:53:37 -07:00
Randy Eckenrode
28efedc639
symbolicator: fix build on Darwin
Add the SystemConfiguration framework as a `buildInput`. Otherwise,
symbolicator fails to link on Darwin.
2024-01-21 22:49:08 -05:00
figsoda
0eeabb2d28 symbolicator: 23.11.0 -> 23.11.2
Diff: https://github.com/getsentry/symbolicator/compare/23.11.0...23.11.2

Changelog: https://github.com/getsentry/symbolicator/blob/23.11.2/CHANGELOG.md
2023-11-27 15:32:33 -05:00
figsoda
b287551a21 symbolicator: fix build on darwin 2023-11-20 13:07:37 -05:00
figsoda
09aa963349 symbolicator: 23.10.1 -> 23.11.0
Diff: https://github.com/getsentry/symbolicator/compare/23.10.1...23.11.0

Changelog: https://github.com/getsentry/symbolicator/blob/23.11.0/CHANGELOG.md
2023-11-15 22:44:39 -05:00
figsoda
cf83850eb6 symbolicator: 23.10.0 -> 23.10.1
Diff: https://github.com/getsentry/symbolicator/compare/23.10.0...23.10.1

Changelog: https://github.com/getsentry/symbolicator/blob/23.10.1/CHANGELOG.md
2023-10-21 20:06:01 -04:00
figsoda
d9b2e59543 symbolicator: 23.9.1 -> 23.10.0
Diff: https://github.com/getsentry/symbolicator/compare/23.9.1...23.10.0

Changelog: https://github.com/getsentry/symbolicator/blob/23.10.0/CHANGELOG.md
2023-10-16 22:18:36 -04:00
figsoda
3e811005e0 symbolicator: 23.9.0 -> 23.9.1
Diff: https://github.com/getsentry/symbolicator/compare/23.9.0...23.9.1

Changelog: https://github.com/getsentry/symbolicator/blob/23.9.1/CHANGELOG.md
2023-09-20 23:21:09 -04:00
figsoda
f14e90ac59 symbolicator: 23.8.0 -> 23.9.0
Diff: https://github.com/getsentry/symbolicator/compare/23.8.0...23.9.0

Changelog: https://github.com/getsentry/symbolicator/blob/23.9.0/CHANGELOG.md
2023-09-19 22:01:09 -04:00
figsoda
a3cb994e1b symbolicator: init at 23.8.0
https://github.com/getsentry/symbolicator
2023-09-10 19:47:31 -04:00