From eef9f0ca2d278743f72be7838a4e58bf747390b5 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Wed, 1 Nov 2023 12:22:15 +0100 Subject: [PATCH] clean flags --- linux/CMakeLists.txt | 2 ++ src/CMakeLists.txt | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 6b0cdb4..49788b1 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -9,6 +9,8 @@ project(${PROJECT_NAME} LANGUAGES CXX) # Invoke the build for native code shared with the other target platforms. # This can be changed to accomodate different builds. +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") + add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../src" "${CMAKE_CURRENT_BINARY_DIR}/shared") # List of absolute paths to libraries that should be bundled with the plugin. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 379f1bc..13a498d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,10 +6,7 @@ cmake_minimum_required(VERSION 3.18) project(flutter_stockfish_plugin VERSION 0.0.1 LANGUAGES CXX) file(GLOB_RECURSE cppPaths "Stockfish/src/*.cpp") set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_FLAGS "-O3 -flto") -#set(CMAKE_CXX_FLAGS "-O3 -flto -march=native") -#old: -Wshadow -Wmissing-declarations -fno-exceptions -std=c++17 -fPIC -Wall -Wextra -march=native -#set(CMAKE_CXX_FLAGS_RELEASE "-O3 -flto -march=native") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -flto") set(NNUE_NAME nn-5af11540bbfe.nnue) add_library(flutter_stockfish_plugin SHARED