aboutsummaryrefslogtreecommitdiff
path: root/lib/libgloss.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-06-19 07:52:43 -0600
committerJacob Bachmeyer <jcb62281+dev@gmail.com>2020-06-20 21:59:48 -0500
commitc8beff4a084334f07d03bb1165238147636eb7c8 (patch)
tree5b4ce4699f5b9e54508f5186ddee750b978088c3 /lib/libgloss.exp
parent57edff84aa64cd73600491335f734e83151d39f3 (diff)
downloaddejagnu-c8beff4a084334f07d03bb1165238147636eb7c8.zip
dejagnu-c8beff4a084334f07d03bb1165238147636eb7c8.tar.gz
dejagnu-c8beff4a084334f07d03bb1165238147636eb7c8.tar.bz2
Add Rust support to default_target_compile
This adds support for the Rust language to default_target_compile. This comes from a gdb patch: commit 67218854b1987d89593ccaf5feaf5b29b1b976f2 Author: Tom Tromey <tom@tromey.com> Date: Tue Apr 26 19:38:43 2016 -0600 Update gdb test suite for Rust [...] 2016-05-17 Tom Tromey <tom@tromey.com> Manish Goregaokar <manishsmail@gmail.com>
Diffstat (limited to 'lib/libgloss.exp')
-rw-r--r--lib/libgloss.exp16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/libgloss.exp b/lib/libgloss.exp
index 56a9728..522e864 100644
--- a/lib/libgloss.exp
+++ b/lib/libgloss.exp
@@ -765,6 +765,22 @@ proc find_gnatmake {} {
return $CC
}
+proc find_rustc {} {
+ global tool_root_dir
+ if {![is_remote host]} {
+ set rustc [lookfor_file $tool_root_dir rustc]
+ if {$rustc eq ""} {
+ set rustc rustc
+ }
+ } else {
+ set rustc ""
+ }
+ if {$rustc ne ""} {
+ append rustc " --color never"
+ }
+ return $rustc
+}
+
proc find_nm {} {
global tool_root_dir