Open patryk4815 opened 1 year ago
See also #203380
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/single-cmakebuildtype-shared-between-derivation-and-dependency/35184/3
For rust, one can specify RUSTFLAGS='-C split-debuginfo=packed'
and the debug information is then put into a .dSYM
directory that can easily be included in $out
and seems to work.
Describe the bug
environment.enableDebugInfo Or
separateDebugInfo
OrenableDebugging
Not working as excepted. It should produce "package" with debug symbols.Steps To Reproduce
Steps to reproduce the behavior:
^
debug
dir is not created. And debug map is missing.^ debug map was created, but debug symbols missing, because they are in
.o
files (/private/tmp/nix-build-hello-2.12.1.drv-0/hello-2.12.1/
was removed after build)Expected behavior
a) Lets disable support for darwin in
enableDebugging
/separateDebugInfo
/enableDebugInfo
(and throw exception) b)enableDebugging
:postFixup
phase, eg. for packaging.o
files 🤔/private/tmp/nix-build-hello-2.12.1.drv-0/hello-2.12.1/
to/nix/store/XXX
🤔c)
separateDebugInfo
- don't know if it will workNotify maintainers
@NixOS/darwin-maintainers