Skip to content

Commit 29ff55e

Browse files
committed
fixup! feat(hexagon): add Hexagon ISA target support
fixup! feat(hexagon): add Hexagon ISA target support Add BUILD_TARGET_HEXAGON to the preprocessor guard and auto-detection chain in core/config.h so the target is recognized when compiling with hexagon-unknown-linux-musl-clang (__hexagon__ predefined macro).
1 parent 8258366 commit 29ff55e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/config.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
&& !defined(BUILD_TARGET_RISCV32_ILP32D) \
2323
&& !defined(BUILD_TARGET_RISCV32_ILP32F) \
2424
&& !defined(BUILD_TARGET_RISCV32_ILP32) \
25-
&& !defined(BUILD_TARGET_ARC)
25+
&& !defined(BUILD_TARGET_ARC) \
26+
&& !defined(BUILD_TARGET_HEXAGON)
2627
/* clang-format on */
2728
#if defined(__x86_64__) || defined(__x86_64)
2829
#define BUILD_TARGET_X86_64
@@ -52,6 +53,8 @@
5253
#define BUILD_TARGET_RISCV32_ILP32D
5354
#elif defined(__arc__)
5455
#define BUILD_TARGET_ARC
56+
#elif defined(__hexagon__)
57+
#define BUILD_TARGET_HEXAGON
5558
#else
5659
#error "Build target isn't set"
5760
#endif

0 commit comments

Comments
 (0)