Skip to content

Commit 27c5940

Browse files
authored
[AMD] Add missing CMake dependency on TritonAMDGPUTableGen (#7824)
The library TritonAMDAnalysis includes Dialect.h which in turn includes Dialect.h.inc. This means that for the library to build successfully, the tablegen target that produces Dialect.h.inc must run first. That target is TritonAMDGPUTableGen. However, TritonAMDAnalysis has no dependency on TritonAMDGPUTableGen resulting in spurious build breaks. This change adds the missing dependency. Fixes triton-lang/triton#7821
1 parent 0b5c483 commit 27c5940

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/amd/lib/Analysis/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ add_triton_library(TritonAMDAnalysis
55

66
DEPENDS
77
TritonTableGen
8+
TritonAMDGPUTableGen
89

910
LINK_LIBS PUBLIC
1011
MLIRAnalysis

0 commit comments

Comments
 (0)