Skip to content

Commit

Permalink
make use of the symlink, to ease things (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang authored Feb 17, 2023
1 parent 2c113b3 commit c80a26f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/closure.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ This uses the stage1 compiler and enables `debug!` logging for the

The other option is to step through the code using lldb or gdb.

1. `rust-lldb build/x86_64-apple-darwin/stage1/bin/rustc test.rs`
1. `rust-lldb build/host/stage1/bin/rustc test.rs`
2. In lldb:
1. `b upvar.rs:134` // Setting the breakpoint on a certain line in the upvar.rs file`
2. `r` // Run the program until it hits the breakpoint
Expand Down
4 changes: 2 additions & 2 deletions src/compiler-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ from the directory where it is built (does not have to be "installed"):
"request": "launch",
"name": "Launch",
"args": [], // array of string command-line arguments to pass to compiler
"program": "${workspaceFolder}/build/TARGET/stage1/bin/rustc",
"program": "${workspaceFolder}/build/host/stage1/bin/rustc",
"windows": { // applicable if using windows
"program": "${workspaceFolder}/build/x86_64-pc-windows-msvc/stage1/bin/rustc.exe"
"program": "${workspaceFolder}/build/host/stage1/bin/rustc.exe"
},
"cwd": "${workspaceFolder}", // current working directory at program start
"stopOnEntry": false,
Expand Down

0 comments on commit c80a26f

Please sign in to comment.