mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
bt: Fix generation of click-able links for source files.
When the default build location was moved from /Build to the new architecture specific directory, /Build/i686, this code broke. All file names are now path relative one additional level up. So continue the hack, and introduce another dummy directory to make the relative paths resolve correctly.
This commit is contained in:
parent
69e2431c64
commit
f1c98dc5ea
Notes:
sideshowbarker
2024-07-18 18:50:43 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/f1c98dc5ea9 Pull-request: https://github.com/SerenityOS/serenity/pull/6771 Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ int main(int argc, char** argv)
|
|||
|
||||
// See if we can find the sources in /usr/src
|
||||
// FIXME: I'm sure this can be improved!
|
||||
auto full_path = LexicalPath::canonicalized_path(String::formatted("/usr/src/serenity/dummy/{}", symbol.filename));
|
||||
auto full_path = LexicalPath::canonicalized_path(String::formatted("/usr/src/serenity/dummy/dummy/{}", symbol.filename));
|
||||
if (access(full_path.characters(), F_OK) == 0) {
|
||||
linked = true;
|
||||
out("\033]8;;file://{}{}?line_number={}\033\\", hostname, full_path, symbol.line_number);
|
||||
|
|
Loading…
Reference in a new issue