Skip to content

Commit f38a4ef

Browse files
committed
Fix llvm8 error string
1 parent fcdd82b commit f38a4ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: tests/all/test_targets.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ fn test_target_and_target_machine() {
7676

7777
#[cfg(any(feature = "llvm3-6", feature = "llvm3-7", feature = "llvm3-8"))]
7878
assert_eq!(bad_target2.unwrap_err().to_string(), "No available targets are compatible with this triple, see -version for the available targets.");
79-
#[cfg(not(any(feature = "llvm3-6", feature = "llvm3-7", feature = "llvm3-8")))]
79+
#[cfg(any(feature = "llvm3-9", feature = "llvm4-0", feature = "llvm5-0", feature = "llvm6-0", feature = "llvm7-0"))]
8080
assert_eq!(bad_target2.unwrap_err().to_string(), "No available targets are compatible with this triple.");
81+
#[cfg(not(any(feature = "llvm3-6", feature = "llvm3-7", feature = "llvm3-8", feature = "llvm3-9", feature = "llvm4-0", feature = "llvm5-0", feature = "llvm6-0", feature = "llvm7-0")))]
82+
assert_eq!(bad_target2.unwrap_err().to_string(), "No available targets are compatible with triple \"sadas\"");
8183

8284
Target::initialize_x86(&InitializationConfig::default());
8385

0 commit comments

Comments
 (0)