clean flags

This commit is contained in:
jusax23 2023-11-01 12:22:15 +01:00
parent 7304faf1ae
commit eef9f0ca2d
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41
2 changed files with 3 additions and 4 deletions

View file

@ -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.

View file

@ -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