diff --git a/cmake/tools/SetupWebKit.cmake b/cmake/tools/SetupWebKit.cmake index 46444d0789..46d80a7db4 100644 --- a/cmake/tools/SetupWebKit.cmake +++ b/cmake/tools/SetupWebKit.cmake @@ -87,6 +87,11 @@ if(LINUX AND ABI STREQUAL "musl") set(WEBKIT_SUFFIX "-musl") endif() +# Baseline builds require a WebKit compiled without AVX instructions +if(ENABLE_BASELINE AND WEBKIT_ARCH STREQUAL "amd64") + set(WEBKIT_SUFFIX "${WEBKIT_SUFFIX}-baseline") +endif() + if(DEBUG) set(WEBKIT_SUFFIX "${WEBKIT_SUFFIX}-debug") elseif(ENABLE_LTO)