Skip to content

Commit b39edc4

Browse files
committed
linux build as release
1 parent aece5e8 commit b39edc4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
mkdir build
4444
cd build
45-
cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
45+
cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF -DCMAKE_BUILD_TYPE=Release
4646
cmake --build . --config Release --verbose
4747
ctest -V -C Release
4848
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
@@ -52,9 +52,9 @@ jobs:
5252
mkdir build
5353
cd build
5454
if [[ "${{ matrix.platform }}" = darwin-arm64 ]]; then
55-
cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
55+
cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF -DCMAKE_BUILD_TYPE=Release
5656
else
57-
cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
57+
cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF -DCMAKE_BUILD_TYPE=Release
5858
fi
5959
cmake --build . --config Release --verbose
6060
ctest -V -C Release

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ if(APPLE)
1919
set(CMAKE_REQUIRED_LINK_OPTIONS "-arch;arm64")
2020
check_c_compiler_flag("-arch arm64" arm64Supported)
2121
message("arm64Supported=${arm64Supported}")
22-
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
23-
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
2422
endif ()
2523

2624
add_subdirectory(LuaParser)

0 commit comments

Comments
 (0)