diff --git a/cmake/tools/SetupWebKit.cmake b/cmake/tools/SetupWebKit.cmake index 5464fcff94..ce6eab1bf2 100644 --- a/cmake/tools/SetupWebKit.cmake +++ b/cmake/tools/SetupWebKit.cmake @@ -79,6 +79,12 @@ if(ENABLE_ASAN) set(WEBKIT_SUFFIX "${WEBKIT_SUFFIX}-asan") endif() +# Baseline builds require a WebKit compiled without AVX instructions (nehalem target). +# This only applies to x86_64 builds, as ARM builds don't have this issue. +if(ENABLE_BASELINE AND CMAKE_SYSTEM_PROCESSOR MATCHES "amd64|x86_64|x64|AMD64") + set(WEBKIT_SUFFIX "${WEBKIT_SUFFIX}-baseline") +endif() + setx(WEBKIT_NAME bun-webkit-${WEBKIT_OS}-${WEBKIT_ARCH}${WEBKIT_SUFFIX}) set(WEBKIT_FILENAME ${WEBKIT_NAME}.tar.gz) setx(WEBKIT_DOWNLOAD_URL https://github.com/oven-sh/WebKit/releases/download/autobuild-${WEBKIT_VERSION}/${WEBKIT_FILENAME})