[flang-commits] [flang] [flang] Updating drivers to create data layout before semantics (PR #73301)
via flang-commits
flang-commits at lists.llvm.org
Fri Nov 24 10:35:04 PST 2023
================
@@ -49,9 +49,14 @@ if (NOT CMAKE_CROSSCOMPILING)
# The module contains PPC vector types that needs the PPC target.
set(opts "")
- if(${filename} STREQUAL "__ppc_intrinsics" OR
- ${filename} STREQUAL "mma")
- set(opts "--target=ppc64le")
+ if(${filename} STREQUAL "__ppc_intrinsics" OR
+ ${filename} STREQUAL "mma")
+ if (PowerPC IN_LIST LLVM_TARGETS_TO_BUILD)
+ set(opts "--target=ppc64le")
+ else()
+ # Do not compile PPC module if the target is not available.
+ continue()
+ endif()
----------------
kkwli wrote:
Yes. These modules are only built for PPC platform.
https://github.com/llvm/llvm-project/pull/73301
More information about the flang-commits
mailing list