mirror of
https://github.com/rui314/mold.git
synced 2024-12-26 01:44:29 +03:00
Embed mold command line to .comment only when MOLD_DEBUG is set
This commit is contained in:
parent
bc2ece0474
commit
06eb4c0452
@ -206,7 +206,8 @@ void compute_merged_section_sizes(Context<E> &ctx) {
|
||||
add_comment_string(ctx, get_version_string());
|
||||
|
||||
// Also embed command line arguments for now for debugging.
|
||||
add_comment_string(ctx, "mold command line: " + get_cmdline_args(ctx));
|
||||
if (char *env = getenv("MOLD_DEBUG"); env && env[0])
|
||||
add_comment_string(ctx, "mold command line: " + get_cmdline_args(ctx));
|
||||
|
||||
tbb::parallel_for_each(ctx.merged_sections,
|
||||
[](std::unique_ptr<MergedSection<E>> &sec) {
|
||||
|
Loading…
Reference in New Issue
Block a user