FAQ/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "如果您想在 64 位系统上测试,可以将 callPackage 替换为 callPackage_i686 来构建 32 位版本的软件包。"
Ardenet (talk | contribs)
Created page with "另见 Debug Symbols"
Line 139: Line 139:
=== 我如何编译包含调试符号的包?===
=== 我如何编译包含调试符号的包?===


<div lang="en" dir="ltr" class="mw-content-ltr">
要使用 -Og -g 参数构建软件包,且不去除调试符号,请使用:
To build a package with -Og and -g, and without stripping debug symbols use:
</div>


<syntaxhighlight lang="bash">nix-build -E 'with import <nixpkgs> { }; enableDebugging fooPackage'</syntaxhighlight>
<syntaxhighlight lang="bash">nix-build -E 'with import <nixpkgs> { }; enableDebugging fooPackage'</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
另见 [[Debug Symbols]]
See also [[Debug Symbols]]
</div>


<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>