FAQ/zh: Difference between revisions
Created page with "如果您想在 64 位系统上测试,可以将 callPackage 替换为 callPackage_i686 来构建 32 位版本的软件包。" |
Created page with "另见 Debug Symbols" |
||
| Line 139: | Line 139: | ||
=== 我如何编译包含调试符号的包?=== | === 我如何编译包含调试符号的包?=== | ||
要使用 -Og 和 -g 参数构建软件包,且不去除调试符号,请使用: | |||
<syntaxhighlight lang="bash">nix-build -E 'with import <nixpkgs> { }; enableDebugging fooPackage'</syntaxhighlight> | <syntaxhighlight lang="bash">nix-build -E 'with import <nixpkgs> { }; enableDebugging fooPackage'</syntaxhighlight> | ||
另见 [[Debug Symbols]] | |||
<span id="How_can_I_force_a_rebuild_from_source_even_without_modifying_the_nix_expression?"></span> | <span id="How_can_I_force_a_rebuild_from_source_even_without_modifying_the_nix_expression?"></span> | ||