Skip to content

Commit aece5e8

Browse files
committed
modify build script
1 parent d457471 commit aece5e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
mkdir build
4444
cd build
4545
cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
46-
cmake --build . --config Release
46+
cmake --build . --config Release --verbose
4747
ctest -V -C Release
4848
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
4949
- name: Build-macosx
@@ -56,7 +56,7 @@ jobs:
5656
else
5757
cmake .. -DBUILD_GMOCK=OFF -DINSTALL_GTEST=OFF
5858
fi
59-
cmake --build . --config Release
59+
cmake --build . --config Release --verbose
6060
ctest -V -C Release
6161
cmake --install . --config Release --prefix ${{ github.workspace }}/artifact/
6262

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ 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")
2224
endif ()
2325

2426
add_subdirectory(LuaParser)

0 commit comments

Comments
 (0)