From e3f3cb9761c6a18febe8a340026f3e93aaf2b214 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Wed, 8 Jan 2020 13:48:05 +0000 Subject: Recognise riscv64 in compiletest --- src/tools/compiletest/src/util.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools') diff --git a/src/tools/compiletest/src/util.rs b/src/tools/compiletest/src/util.rs index 003f51a0f43..2663b3d160a 100644 --- a/src/tools/compiletest/src/util.rs +++ b/src/tools/compiletest/src/util.rs @@ -67,6 +67,7 @@ const ARCH_TABLE: &'static [(&'static str, &'static str)] = &[ ("powerpc", "powerpc"), ("powerpc64", "powerpc64"), ("powerpc64le", "powerpc64"), + ("riscv64gc", "riscv64"), ("s390x", "s390x"), ("sparc", "sparc"), ("sparc64", "sparc64"), -- cgit 1.4.1-3-g733a5 From 41318e9a267024fb36162382e26944d235aa71cd Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Wed, 8 Jan 2020 15:07:26 +0300 Subject: compiletest: Do not deduplicate diagnostics in UI tests --- src/tools/compiletest/src/runtest.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tools') diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 226a12c6734..1912c9ef5ba 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1864,12 +1864,14 @@ impl<'test> TestCx<'test> { rustc.args(&["--error-format", "json"]); } rustc.arg("-Zui-testing"); + rustc.arg("-Zdeduplicate-diagnostics=no"); } Ui => { if !self.props.compile_flags.iter().any(|s| s.starts_with("--error-format")) { rustc.args(&["--error-format", "json"]); } rustc.arg("-Zui-testing"); + rustc.arg("-Zdeduplicate-diagnostics=no"); } MirOpt => { rustc.args(&[ -- cgit 1.4.1-3-g733a5