From 3b264c6ac2a9adc284d39f894ecf7dea98525d97 Mon Sep 17 00:00:00 2001 From: 17ms <79069176+17ms@users.noreply.github.com> Date: Mon, 8 Jan 2024 22:16:49 +0200 Subject: [PATCH] fixed typos in toolchains --- toolchains/darwin-mingw-w64-x86_64.cmake | 6 +++--- toolchains/linux-mingw-w64-x86_64.cmake | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/toolchains/darwin-mingw-w64-x86_64.cmake b/toolchains/darwin-mingw-w64-x86_64.cmake index ca89f9e..3bce9f4 100644 --- a/toolchains/darwin-mingw-w64-x86_64.cmake +++ b/toolchains/darwin-mingw-w64-x86_64.cmake @@ -1,6 +1,6 @@ # Usage: # *) Install cross-compiler: `brew install mingw-w64` -# *) cmake -DCMAKE_TOOLCHAIN_FILE=macos-mingw-w64-x86_64.cmake -B build -S . +# *) cmake -DCMAKE_TOOLCHAIN_FILE=toolchains/darwin-mingw-w64-x86_64.cmake -B build -S . # *) make -C build set(CMAKE_SYSTEM_NAME Windows) @@ -22,5 +22,5 @@ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) # General compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static -Os") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -Os") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static -Os -flto") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -Os -flto") diff --git a/toolchains/linux-mingw-w64-x86_64.cmake b/toolchains/linux-mingw-w64-x86_64.cmake index 3209232..741336b 100644 --- a/toolchains/linux-mingw-w64-x86_64.cmake +++ b/toolchains/linux-mingw-w64-x86_64.cmake @@ -1,6 +1,6 @@ # Usage: # *) Install cross-compiler: `sudo apt install mingw-w64` -# *) cmake -DCMAKE_TOOLCHAIN_FILE=macos-mingw-w64-x86_64.cmake -B build -S . +# *) cmake -DCMAKE_TOOLCHAIN_FILE=toolchains/linux-mingw-w64-x86_64.cmake -B build -S . # *) make -C build set(CMAKE_SYSTEM_NAME Windows) @@ -21,5 +21,6 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +# General compiler flags set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static -Os -flto") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -Os -flto") \ No newline at end of file +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -Os -flto")