forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make clang report invalid target versions. (llvm#75373)
Clang always silently ignores garbage target versions and this makes debug harder. So clang will report when target versions are invalid.
- Loading branch information
1 parent
00c466d
commit 50d1796
Showing
7 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Check that we get the right Android version. | ||
|
||
// RUN: not %clang --target=aarch64-linux-androidS -c %s -### 2>&1 | \ | ||
// RUN: FileCheck --check-prefix=CHECK-ERROR %s | ||
|
||
// CHECK-ERROR: error: version 'S' in target triple 'aarch64-unknown-linux-androidS' is invalid | ||
|
||
// RUN: not %clang --target=armv7-linux-androideabiS -c %s -### 2>&1 | \ | ||
// RUN: FileCheck --check-prefix=CHECK-ERROR1 %s | ||
|
||
// CHECK-ERROR1: error: version 'S' in target triple 'armv7-unknown-linux-androidS' is invalid | ||
|
||
// RUN: %clang --target=aarch64-linux-android31 -c %s -### 2>&1 | \ | ||
// RUN: FileCheck --check-prefix=CHECK-TARGET %s | ||
|
||
// CHECK-TARGET: "aarch64-unknown-linux-android31" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters