From b1c1412e4781bd4f4bce79a21152fbdd2ef9cbc3 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 18 Apr 2025 09:37:20 -0400 Subject: [PATCH] Use the `sourcemeta_enable_simd()` in Blaze I'm making SIMD flags opt-in to make it easier to release cross-platform binaries for tools like the JSON Schema CLI (as some target machines will not support SIMD). While we don't use SIMD directly, auto-vectorisation does, and saw issues in the wild with the JSON Schema CLI binaries not working on certain machines. Signed-off-by: Juan Cruz Viotti --- implementations/blaze/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/implementations/blaze/CMakeLists.txt b/implementations/blaze/CMakeLists.txt index 018453b..e8ef292 100644 --- a/implementations/blaze/CMakeLists.txt +++ b/implementations/blaze/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.16) project(blaze_benchmark) include(/app/repo/vendor/core/cmake/Sourcemeta.cmake) +sourcemeta_enable_simd() set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mtune=native")