]> git.lizzy.rs Git - rust.git/blobdiff - src/etc/rust-lldb
Don't checkout llvm-project when the LLVM backend isn't built
[rust.git] / src / etc / rust-lldb
index 28b32ef1ad5328cbef7f3dbc70131d8bbd89906d..bce72f1bad698d45b0743adf0b9fb78fc9f039b2 100755 (executable)
@@ -30,5 +30,8 @@ EOF
     fi
 fi
 
+script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_lookup.py\""
+commands_file="$RUSTC_SYSROOT/lib/rustlib/etc/lldb_commands"
+
 # Call LLDB with the commands added to the argument list
-exec "$lldb" --source-before-file ./lldb_commands "$@"
+exec "$lldb" --one-line-before-file "$script_import" --source-before-file "$commands_file" "$@"