Skip to content

Commit

Permalink
Create release binary with cmake explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Oct 4, 2023
1 parent 6897bb9 commit fe56918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/mini_portile2/mini_portile_cmake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def cmake_compile_flags
"-DCMAKE_SYSTEM_NAME=#{cmake_system_name}",
"-DCMAKE_SYSTEM_PROCESSOR=#{cpu_type}",
"-DCMAKE_C_COMPILER=#{c_compiler}",
"-DCMAKE_CXX_COMPILER=#{cxx_compiler}"
"-DCMAKE_CXX_COMPILER=#{cxx_compiler}",
"-DCMAKE_BUILD_TYPE=Release"
]
end

Expand Down
9 changes: 6 additions & 3 deletions test/test_cmake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def test_configure_defaults_with_macos
"-DCMAKE_SYSTEM_NAME=Darwin",
"-DCMAKE_SYSTEM_PROCESSOR=arm64",
"-DCMAKE_C_COMPILER=some-host-clang",
"-DCMAKE_CXX_COMPILER=some-host-clang++"
"-DCMAKE_CXX_COMPILER=some-host-clang++",
"-DCMAKE_BUILD_TYPE=Release"
],
recipe.configure_defaults)
end
Expand All @@ -119,7 +120,8 @@ def test_configure_defaults_with_manual_system_name
"-DCMAKE_SYSTEM_NAME=Custom",
"-DCMAKE_SYSTEM_PROCESSOR=x86_64",
"-DCMAKE_C_COMPILER=gcc",
"-DCMAKE_CXX_COMPILER=g++"
"-DCMAKE_CXX_COMPILER=g++",
"-DCMAKE_BUILD_TYPE=Release"
],
recipe.configure_defaults)
end
Expand Down Expand Up @@ -227,7 +229,8 @@ def default_x86_compile_flags
"-DCMAKE_SYSTEM_NAME=Linux",
"-DCMAKE_SYSTEM_PROCESSOR=x86_64",
"-DCMAKE_C_COMPILER=gcc",
"-DCMAKE_CXX_COMPILER=g++"
"-DCMAKE_CXX_COMPILER=g++",
"-DCMAKE_BUILD_TYPE=Release"
]
end

Expand Down

0 comments on commit fe56918

Please sign in to comment.