Skip to content

Commit fa1cf54

Browse files
authored
Fix the issue --target cannot recognize h2blb--darwin (#11)
1 parent d3e7d36 commit fa1cf54

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/lib/Driver/ToolChains/Darwin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ llvm::Triple::ArchType darwin::getArchTypeForMachOArchName(StringRef Str) {
6969
.Case("nvptx64", llvm::Triple::nvptx64)
7070
.Case("amdil", llvm::Triple::amdil)
7171
.Case("spir", llvm::Triple::spir)
72+
.Case("h2blb", llvm::Triple::h2blb)
7273
.Default(llvm::Triple::UnknownArch);
7374
}
7475

clang/test/CodeGen/H2BLB/empty_hello_world.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: h2blb-registered-target
2-
// RUN: %clang --target=h2blb %s -o - -S | FileCheck %s
2+
// RUN: %clang --target=h2blb--darwin %s -o - -S | FileCheck %s
33

44
// Check that we can connect clang from the driver (as opposed to cc1) all
55
// the way to assembly code.

0 commit comments

Comments
 (0)