mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:20:13 +01:00
Fix backtrace symbolization. (#6803)
We previously set `LLVM_SYMBOLIZER_PATH` to a bogus path ending `.../binllvm-symbolizer`. Because this var was set, LLVM's symbolizer lookup would also skip looking in `$PATH`, so this was causing symbolization to never happen unless `LLVM_SYMBOLIZER_PATH` was explicitly set in the environment.
This commit is contained in:
@@ -44,7 +44,7 @@ static auto Main(int argc, char** argv) -> ErrorOr<int> {
|
||||
// for symbolization.
|
||||
setenv(
|
||||
"LLVM_SYMBOLIZER_PATH",
|
||||
(install_paths.llvm_install_bin().native() + "llvm-symbolizer").c_str(),
|
||||
(install_paths.llvm_install_bin() / "llvm-symbolizer").native().c_str(),
|
||||
/*overwrite=*/0);
|
||||
|
||||
auto fs = llvm::vfs::getRealFileSystem();
|
||||
|
||||
Reference in New Issue
Block a user