Skip to content

Commit a3c8165

Browse files
[flang][acc] Fix dialect dependencies (#146431)
The TestOpenACCInterfaces test loads dialects including HLFIR and DLTI (for data layout). The appropriate dependencies were missing leading to link failures: TestOpenACCInterfaces.cpp:(.text._ZNK12_GLOBAL__N_124TestFIROpenACCInterfaces20getDependentDialectsERN4mlir15DialectRegistryE+0x66): undefined reference to `mlir::detail::TypeIDResolver<hlfir::hlfirDialect, void>::id' TestOpenACCInterfaces.cpp:(.text._ZNK12_GLOBAL__N_124TestFIROpenACCInterfaces20getDependentDialectsERN4mlir15DialectRegistryE+0x141): undefined reference to `mlir::detail::TypeIDResolver<mlir::DLTIDialect, void>::id'
1 parent d2500e6 commit a3c8165

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/test/lib/OpenACC/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,26 @@ add_flang_library(FIRTestOpenACCInterfaces
22
TestOpenACCInterfaces.cpp
33

44
DEPENDS
5+
HLFIRDialect
56
FIRDialect
67
FIROpenACCSupport
78
FIRSupport
89

910
LINK_LIBS
11+
HLFIRDialect
1012
FIRDialect
1113
FIROpenACCSupport
1214
FIRSupport
1315

1416
MLIR_DEPS
17+
MLIRDLTIDialect
1518
MLIRIR
1619
MLIROpenACCDialect
1720
MLIRPass
1821
MLIRSupport
1922

2023
MLIR_LIBS
24+
MLIRDLTIDialect
2125
MLIRIR
2226
MLIROpenACCDialect
2327
MLIRPass

0 commit comments

Comments
 (0)