clean flags
This commit is contained in:
parent
7304faf1ae
commit
eef9f0ca2d
2 changed files with 3 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue