I noticed a difference in the output of the llvm-args=--help-list-hidden flag when the llvm.link-shared configuration option is set to true or false in config.toml.
Steps to reproduce on Mac:
- Set
llvm.link-shared=true and llvm.download-ci-llvm=false in the config.toml.
./x.py build
./build/<triple>/stage1/bin/rustc -Cllvm-args=--help-list-hidden | rg emit-dwarf-uwind will print the llvm option
Expected behavior:
The output of llvm-args=--help-list-hidden should be consistent regardless of the value of llvm.link-shared. So The emit-dwarf-unwind option should be present in the output regardless of the llvm.link-shared setting.
Actual behavior:
When llvm.link-shared is set to false, the emit-dwarf-unwind option is missing from the output of llvm-args=--help-list-hidden. And llvm was statically linked within rustc on non-Linux platform, while statically linked on Linux; this difference can be seen on Linux and Mac.
Rust Version: latest nightly
I noticed a difference in the output of the
llvm-args=--help-list-hiddenflag when thellvm.link-sharedconfiguration option is set to true or false in config.toml.Steps to reproduce on Mac:
llvm.link-shared=trueandllvm.download-ci-llvm=falsein theconfig.toml../x.py build./build/<triple>/stage1/bin/rustc -Cllvm-args=--help-list-hidden | rg emit-dwarf-uwindwill print the llvm optionExpected behavior:
The output of
llvm-args=--help-list-hiddenshould be consistent regardless of the value ofllvm.link-shared. So Theemit-dwarf-unwindoption should be present in the output regardless of thellvm.link-sharedsetting.Actual behavior:
When
llvm.link-sharedis set to false, theemit-dwarf-unwindoption is missing from the output ofllvm-args=--help-list-hidden. And llvm was statically linked within rustc on non-Linux platform, while statically linked on Linux; this difference can be seen on Linux and Mac.Rust Version: latest nightly