mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Don't use -fdiagnostics-color=never for rustc
I noticed that the gdb.rust tests fail because the test suite passes -fdiagnostics-color=never to rustc. This is not a recognized rustc option, and the test suite already handles passing the appropriate option to the Rust compiler. This patch fixes the problem. testsuite/ChangeLog 2017-09-05 Tom Tromey <tom@tromey.com> * lib/gdb.exp (gdb_compile): Don't use universal_compile_options for rust.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2017-09-05 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* lib/gdb.exp (gdb_compile): Don't use universal_compile_options
|
||||||
|
for rust.
|
||||||
|
|
||||||
2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
|
2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
* gdb.multi/multi-arch-exec.exp: Test with different
|
* gdb.multi/multi-arch-exec.exp: Test with different
|
||||||
|
@ -3447,7 +3447,12 @@ proc gdb_compile {source dest type options} {
|
|||||||
|
|
||||||
# Add platform-specific options if a shared library was specified using
|
# Add platform-specific options if a shared library was specified using
|
||||||
# "shlib=librarypath" in OPTIONS.
|
# "shlib=librarypath" in OPTIONS.
|
||||||
set new_options [universal_compile_options]
|
if {[lsearch -exact $options rust] != -1} {
|
||||||
|
# -fdiagnostics-color is not a rustcc option.
|
||||||
|
} else {
|
||||||
|
set new_options [universal_compile_options]
|
||||||
|
}
|
||||||
|
set new_options {}
|
||||||
set shlib_found 0
|
set shlib_found 0
|
||||||
set shlib_load 0
|
set shlib_load 0
|
||||||
foreach opt $options {
|
foreach opt $options {
|
||||||
|
Reference in New Issue
Block a user