aboutsummaryrefslogtreecommitdiff
path: root/libc/loader
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2020-06-09 00:31:48 -0700
committerSiva Chandra Reddy <sivachandra@google.com>2020-06-09 14:40:28 -0700
commitfd3295fb6f981a5c030d7540b9eda67f9c723e0f (patch)
tree78cebc2e3c948789c511ea07a0f04ded9aa87183 /libc/loader
parent01e64c971260f6999d3365ac163f33da02c63534 (diff)
downloadllvm-fd3295fb6f981a5c030d7540b9eda67f9c723e0f.zip
llvm-fd3295fb6f981a5c030d7540b9eda67f9c723e0f.tar.gz
llvm-fd3295fb6f981a5c030d7540b9eda67f9c723e0f.tar.bz2
[libc] Skip entrypoints not present in the entrypoints list.
Summary: If a test depends on a skipped entrypoint, then the test is also skipped. This setup will be useful as we gradually add support for more operating systems and target architectures. Reviewers: asteinhauser Differential Revision: https://reviews.llvm.org/D81489
Diffstat (limited to 'libc/loader')
-rw-r--r--libc/loader/linux/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/loader/linux/CMakeLists.txt b/libc/loader/linux/CMakeLists.txt
index b972f72..5cb184a 100644
--- a/libc/loader/linux/CMakeLists.txt
+++ b/libc/loader/linux/CMakeLists.txt
@@ -56,6 +56,11 @@ function(add_loader_object name)
)
endfunction()
+if(NOT (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_MACHINE}))
+ message(STATUS "Skipping loader for target machine ${LIBC_TARGET_MACHINE}")
+ return()
+endif()
+
add_subdirectory(${LIBC_TARGET_MACHINE})
add_loader_object(