Commit 185833cc authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

cmake: rdtsc is only supported on x86

parent 7694e20f
......@@ -39,7 +39,6 @@ add_library(villas-common SHARED
memory_manager.cpp
plugin.cpp
table.c
tsc.c
task.c
timing.c
utils.c
......@@ -49,6 +48,16 @@ add_library(villas-common SHARED
version.cpp
)
execute_process(
COMMAND uname -m
COMMAND tr -d '\n'
OUTPUT_VARIABLE ARCH
)
if(ARCH STREQUAL "x86_64")
target_sources(villas-common PRIVATE tsc.c)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
target_sources(villas-common PRIVATE
kernel/pci.c
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment