Skip to content

Commit f540c25

Browse files
lu-zerorocallahan
authored andcommitted
Error out early if the architecture is not supported
1 parent 2ba5d7e commit f540c25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
7575
set(PRELOAD_LIBRARY_PAGE_SIZE 65536)
7676
set(VDSO_NAME "LINUX_2.6.39")
7777
set(VDSO_SYMBOLS "__kernel_clock_getres; __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime;")
78-
else()
78+
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86|x86_64)
7979
set(x86ish true)
8080
set(has_syscallbuf true)
8181
set(FLAGS_COMMON "${FLAGS_COMMON} -msse2 -D__MMX__ -D__SSE__ -D__SSE2__")
8282
set(PRELOAD_LIBRARY_PAGE_SIZE 4096)
8383
set(VDSO_NAME "LINUX_2.6")
8484
set(VDSO_SYMBOLS "__vdso_gettimeofday; __vdso_clock_getres; __vdso_time; __vdso_clock_gettime; __vdso_getcpu;")
85+
else()
86+
message(FATAL_ERROR "The architecture " ${CMAKE_SYSTEM_PROCESSOR} " is not yet supported")
8587
endif()
8688
configure_file(src/preload/rr_page.ld.in src/preload/rr_page.ld @ONLY)
8789

0 commit comments

Comments
 (0)