Skip to content

Commit

Permalink
Pass --release to Cargo for RelWithDebInfo and MinSizeRel profiles also.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinetiknz committed Feb 10, 2025
1 parent 8947ea9 commit 20154a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ if(USE_PULSE AND USE_PULSE_RUST)
cubeb_pulse_rs
DOWNLOAD_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND cargo build --features=gecko-in-tree "$<IF:$<CONFIG:Release>,--release,>"
BUILD_COMMAND cargo build --features=gecko-in-tree "$<IF:$<CONFIG:Release,RelWithDebInfo,MinSizeRel>,--release,>"
BUILD_ALWAYS ON
BINARY_DIR "${PROJECT_SOURCE_DIR}/src/cubeb-pulse-rs"
INSTALL_COMMAND ""
Expand All @@ -364,7 +364,7 @@ if(USE_AUDIOUNIT AND USE_AUDIOUNIT_RUST)
cubeb_coreaudio_rs
DOWNLOAD_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND cargo build --features=gecko-in-tree "$<IF:$<CONFIG:Release>,--release,>"
BUILD_COMMAND cargo build --features=gecko-in-tree "$<IF:$<CONFIG:Release,RelWithDebInfo,MinSizeRel>,--release,>"
BUILD_ALWAYS ON
BINARY_DIR "${PROJECT_SOURCE_DIR}/src/cubeb-coreaudio-rs"
INSTALL_COMMAND ""
Expand Down

0 comments on commit 20154a3

Please sign in to comment.