Skip to content

Commit 2fb1dea

Browse files
committed
Simplify regex
1 parent eb6f35b commit 2fb1dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang-rt/lib/runtime/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ set(intrinsics_sources
105105
__cuda_builtins.f90
106106
)
107107

108-
if (LLVM_TARGET_TRIPLE MATCHES "^ppc" OR LLVM_TARGET_TRIPLE MATCHES "^powerpc")
108+
if (LLVM_TARGET_TRIPLE MATCHES "^ppc|^powerpc")
109109
list(APPEND host_sources
110110
__ppc_types.f90
111111
__ppc_intrinsics.f90
@@ -213,7 +213,7 @@ else ()
213213
set(f128_sources "")
214214
endif ()
215215

216-
if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn|^nvptx")
216+
if (LLVM_RUNTIMES_TARGET MATCHES "^amdgcn|^nvptx")
217217
set(sources ${gpu_sources})
218218
elseif(FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
219219
set(sources ${supported_sources})

0 commit comments

Comments
 (0)