Skip to content

Commit 740b485

Browse files
committed
__ppc_types is intrinsics-like
1 parent a676db4 commit 740b485

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flang-rt/lib/runtime/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ set(host_sources
111111
)
112112

113113
if (LLVM_TARGET_TRIPLE MATCHES "^ppc|^powerpc")
114-
list(APPEND host_sources
114+
list(APPEND intrinsics_sources
115115
__ppc_types.f90
116+
)
117+
list(APPEND host_sources
116118
__ppc_intrinsics.f90
117119
mma.f90
118120
)
@@ -229,7 +231,7 @@ if (NOT WIN32)
229231
# CMake ignores intrinsic USE dependencies
230232
# CMake has an option Fortran_BUILDING_INSTRINSIC_MODULES/Fortran_BUILDING_INTRINSIC_MODULES
231233
# to disable this behavior, unfortunately it does not work with Ninja
232-
# (https://gitlab.kitware.com/cmake/cmake/-/issues/26803)
234+
# (https://gitlab.kitware.com/cmake/cmake/-/issues/26803)
233235
# As a workaround, we build those intrinsic modules first such that the main
234236
# runtime can depend on it.
235237
add_flangrt_library(flang_rt.intrinsics.obj OBJECT

0 commit comments

Comments
 (0)