aboutsummaryrefslogtreecommitdiff
path: root/test.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'test.cmake')
-rw-r--r--test.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.cmake b/test.cmake
new file mode 100644
index 000000000..c239695cb
--- /dev/null
+++ b/test.cmake
@@ -0,0 +1,9 @@
+set(LLVM_EXECUTABLE_REGEX [[^([^.]*|[^.]*\.lld)\.exe$]])
+foreach(el "bugpoint.exe" "ld.lld.exe" "asdf.dll" "asdf")
+ message(STATUS "Matching ${el}")
+ if(el MATCHES "${LLVM_EXECUTABLE_REGEX}")
+ message(STATUS "Matching ${el} - match (${CMAKE_MATCH_1}).")
+ else()
+ message(STATUS "Matching ${el} - no match.")
+ endif()
+endforeach()