diff --git a/cpu/ppc/CMakeLists.txt b/cpu/ppc/CMakeLists.txt index 6cb6a17..ddce9b1 100644 --- a/cpu/ppc/CMakeLists.txt +++ b/cpu/ppc/CMakeLists.txt @@ -5,4 +5,10 @@ file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/*.h" ) +# The use of volatile is deprecated, but we still need it to avoid function +# parameters being clobbered when using setjmp/longjmp. +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wno-deprecated-volatile) +endif() + add_library(cpu_ppc OBJECT ${SOURCES})